GradientCircle
From Spheriki
Draws a gradient circle onto the video buffer.
Contents |
Usage
- x The x coordinate of the center of the circle.
- y The y coordinate of the center of the circle.
- radius The radius of the circle in pixels.
- color1 The Sphere Color object that is in the center of the circle.
- color2 The Sphere Color object that is at the edge of the circle.
- antialias If set to true then the edge of the circle will be antialiased.
Examples
GradientCircle(50, 50, 20, CreateColor(255, 255, 0), CreateColor(255, 0, 0), true);
Draws an antialiased circle at (50, 50) with a 20 pixel radius that is yellow in the center and red at the edges.
Notes
Don't forget to call FlipScreen() after drawing anything onto the video buffer.