It is now possible to draw a filled ellipse

This commit is contained in:
2023-01-20 20:52:06 -05:00
parent 6967c40143
commit 775e7bd4ca
4 changed files with 40 additions and 7 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() - 64) / 4
element.cellBounds.Max.Y = (bounds.Dy() - 48) / 4
drawStart := time.Now()
@@ -86,6 +86,9 @@ func (element *Artist) Resize (width, height int) {
element.lines(x + 1, element.cellAt(x, 2))
}
// 0, 3
artist.FillEllipse(element, uhex(0x00FF00FF), element.cellAt(0, 3))
drawTime := time.Since(drawStart)
textDrawer := artist.TextDrawer { }
textDrawer.SetFace(defaultfont.FaceRegular)