Various improvements to list

This commit is contained in:
2023-01-23 23:54:12 -05:00
parent 24bcd6977a
commit 468d4e9dab
4 changed files with 103 additions and 31 deletions

View File

@@ -28,7 +28,7 @@ func (element *Artist) Resize (width, height int) {
element.core.AllocateCanvas(width, height)
bounds := element.Bounds()
element.cellBounds.Max.X = bounds.Dx() / 4
element.cellBounds.Max.Y = (bounds.Dy() - 48) / 5
element.cellBounds.Max.Y = (bounds.Dy() - 48) / 6
drawStart := time.Now()
@@ -128,6 +128,17 @@ func (element *Artist) Resize (width, height int) {
drawTime.Milliseconds(),
drawTime.Microseconds())))
textDrawer.Draw(element, uhex(0xFFFFFFFF), image.Pt(8, bounds.Max.Y - 24))
// 0, 5
artist.FillRectangle (
element,
artist.QuadBeveled {
artist.NewUniform(hex(0x880000FF)),
artist.NewUniform(hex(0x00FF00FF)),
artist.NewUniform(hex(0x0000FFFF)),
artist.NewUniform(hex(0xFF00FFFF)),
},
element.cellAt(0, 5))
}
func (element *Artist) lines (weight int, bounds image.Rectangle) {