My personal view, the rectangle is ugly.
So I changed it to circle. nice!
So I changed it to circle.
One line of code!
B4XDateTemplate:
Private Sub DrawBox (c As B4XCanvas, clr As Int, x As Int, y As Int)
'Dim r As B4XRect
'r.Initialize(x * boxW, y * boxH, x * boxW + boxW, y * boxH + boxH)
'c.DrawRect(r, clr, True, 1dip)
c.DrawCircle(x * boxW + 0.5 * boxW, y * boxH + 0.5 * boxH, boxH * 0.5, clr, True, 1dip)
End Sub