Circ

From Pico-8 Wiki
Jump to navigation Jump to search
circ( x, y, [r,] [col] )
Draws a circle shape, without fill.
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.

Examples

Circ-example-1.png
-- draw a large red circle in the middle
circ(64, 64, 32, 8)

 

Circ-example-2.png
-- draw ten small white empty circles in random places
color(7)
for n=1,10 do
  circ(rnd(128), rnd(128), 6)
end

See also