Class Star

java.lang.Object
micycle.pgs.commons.Star

public class Star extends Object
Methods to create star shapes
Author:
Marco Hutter, Processing integration by Michael Carleton
  • 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 center
      centerY - The y coordinate of the center
      innerRadius - The inner radius of the star
      outerRadius - The outer radius of the star
      numRays - The number of rays that the star should have
      Returns:
      The star shape