Fandom

Pico-8 Wiki

Circfill

162pages on
this wiki
Add New Page
Comments0 Share
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.
col
The color of the circle and fill. If omitted, the color from the draw state is used.

Examples Edit

Circfill example 1
circfill(64, 64, 32, 8)

-- draw ten small white filled-in circles in random locations
color(7)
for n=1,10 do
  circfill(rnd(128), rnd(128), 6)
end
Circfill example 2

See also Edit

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.