raw-buffer-api #1

Merged
sashakoshka merged 9 commits from raw-buffer-api into main 2023-01-15 02:04:35 +00:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit d75ec12a3c - Show all commits

View File

@ -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 (

View File

@ -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,