From 6b6e485aca79dd07f33b76ea9d00684768f4a8c8 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Wed, 18 Sep 2024 22:54:25 -0400 Subject: [PATCH] Add documentation on what the DrawBounds colors mean --- draw.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/draw.go b/draw.go index 1fc6af7..3b29a85 100644 --- a/draw.go +++ b/draw.go @@ -50,7 +50,10 @@ func Draw (destination draw.Image, setter *TypeSetter, offset fixed.Point26_6, c } // DrawBounds draws the LayoutBounds, MinimumSize, and LayoutBoundsSpace of a -// TypeSetter to the given image. +// TypeSetter to the given image using these colors: +// - Red: LayoutBounds +// - Green: MinimumSize +// - Blue: LayoutBoundsSpace func DrawBounds (destination draw.Image, setter *TypeSetter, offset fixed.Point26_6) { blue := color.RGBA { B: 255, A: 255 } red := color.RGBA { R: 255, A: 255 }