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