Draw border around mouse test

This commit is contained in:
Sasha Koshka 2023-01-14 13:57:12 -05:00
parent b52696025a
commit 89eb88c982

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