It is now possible to draw a filled ellipse
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user