refactor: generator
This commit is contained in:
@@ -84,9 +84,9 @@ func (p bitmap) SetFreeN(number int) error {
|
||||
return fmt.Errorf("set free pixel: no such number=%d, max=%d", number, n)
|
||||
}
|
||||
|
||||
func (p bitmap) Circle(x, y int, r float64, fill bool) {
|
||||
func (p bitmap) Circle(x, y int, r float32, fill bool) {
|
||||
plotX := 0
|
||||
plotY := int(math.Ceil(r))
|
||||
plotY := int(math.Ceil(float64(r)))
|
||||
delta := 3 - 2*plotY
|
||||
lastY := plotY
|
||||
for plotX <= plotY {
|
||||
|
||||
Reference in New Issue
Block a user