raw-buffer-api #1
@ -70,12 +70,12 @@ func StrokeRectangle (
|
||||
// top
|
||||
FillRectangle (destination, source, image.Rect (
|
||||
bounds.Min.X, bounds.Min.Y,
|
||||
insetBounds.Max.X, insetBounds.Min.Y))
|
||||
bounds.Max.X, insetBounds.Min.Y))
|
||||
|
||||
// bottom
|
||||
FillRectangle (destination, source, image.Rect (
|
||||
bounds.Min.X, insetBounds.Max.Y,
|
||||
insetBounds.Max.X, bounds.Max.Y))
|
||||
bounds.Max.X, bounds.Max.Y))
|
||||
|
||||
// left
|
||||
FillRectangle (destination, source, image.Rect (
|
||||
|
@ -39,7 +39,7 @@ func (element *Mouse) Handle (event tomo.Event) {
|
||||
element.Bounds())
|
||||
artist.StrokeRectangle (
|
||||
element.core,
|
||||
artist.NewUniform(color.Black), 5,
|
||||
artist.NewUniform(color.Black), 1,
|
||||
element.Bounds())
|
||||
artist.Line (
|
||||
element.core, artist.NewUniform(color.White), 1,
|
||||
|
Reference in New Issue
Block a user