raw-buffer-api #1

Merged
sashakoshka merged 9 commits from raw-buffer-api into main 2023-01-15 02:04:35 +00:00
Showing only changes of commit 89eb88c982 - Show all commits

View File

@ -37,7 +37,10 @@ func (element *Mouse) Handle (event tomo.Event) {
element.core,
theme.AccentImage(),
element.Bounds())
// TODO: draw a stroked rectangle around the edges
artist.StrokeRectangle (
element.core,
artist.NewUniform(color.Black), 5,
element.Bounds())
artist.Line (
element.core, artist.NewUniform(color.White), 1,
image.Pt(1, 1),