Surface.filledCircle
From Spheriki
Draws a filled circle on the surface object
Contents |
Usage
- x,y Number, The x and y coordinates for the center of the circle, relative to the surface's coordinates.
- radius Number. The radius of the circle. Any part of the circle not inside the surface will be clipped.
- color Color. The color of the circle.
- antialias Number. The amount of antialiasing to use for the circle (Can be omitted if you want no antialiasing)
Examples
EvaluateScript("colors.js"); var d = CreateSurface(50,50, Blue); function game() { while(true) { d.blit(50,50) d.filledCircle(0,0,50,Red) FlipScreen(); } }
Notes
- This only works while the surface is being drawn
See also
- Sphere Surface object