PICO-8 Wiki
Advertisement
circfill( x, y, [r,] [col] )
Draws a filled-in circle shape.
x
The x coordinate of the center of the circle.

y
The y coordinate of the center of the circle.

r
The radius of the circle, in pixels. If omitted, the radius will be 4.

col
The color of the circle and fill. If omitted, the color from the draw state is used.

Circles with even diameters can be drawn by poking memory address 0x5f36 with value 0x2

poke(0x5f36,0x2) --allow circ & circfill w/even diameter

Examples[]

Circfill example 1
-- draw a large red filled circle in the middle
circfill(64, 64, 32, 8)
Circfill example 2
-- draw ten small white filled circles in random places
color(7)
for n=1,10 do
  circfill(rnd(128), rnd(128), 6)
end

See also[]

Advertisement