Add documentation on what the DrawBounds colors mean

This commit is contained in:
Sasha Koshka 2024-09-18 22:54:25 -04:00
parent 89c23a8947
commit 6b6e485aca

View File

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