Package micycle.pgs.commons
Class Star
java.lang.Object
micycle.pgs.commons.Star
Methods to create star shapes
- Author:
- Marco Hutter, Processing integration by Michael Carleton
-
Method Summary
Modifier and TypeMethodDescriptionstatic processing.core.PShape
createStarShape
(double centerX, double centerY, double innerRadius, double outerRadius, int numRays, double roundness) Create a star shape from the given parameters.
-
Method Details
-
createStarShape
public 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.- Parameters:
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 have- Returns:
- The star shape
-