g.js — graphical objects for JavaScript

starstar

Create a star shape.

g.star({x: 0, y: 0}, 5, 100, 20);

Parameters

  • position: The center point of the star.
  • points: The amount of points in the star.
  • outer: The outer diameter of the star.
  • inner: The inner diameter of the star.