public class Star extends Object
Modifier and Type | Method and Description |
---|---|
static processing.core.PShape |
createStarShape(double centerX,
double centerY,
double innerRadius,
double outerRadius,
int numRays,
double roundness)
Create a star shape from the given parameters.
|
public static processing.core.PShape createStarShape(double centerX, double centerY, double innerRadius, double outerRadius, int numRays, double roundness)
centerX
- The x coordinate of the centercenterY
- The y coordinate of the centerinnerRadius
- The inner radius of the starouterRadius
- The outer radius of the starnumRays
- The number of rays that the star should haveCopyright © 2023. All rights reserved.