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

View File

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