konfeti - v0.6.0
    Preparing search index...

    Type Alias StarShapeOptions

    StarShapeOptions: ShapeEntryBase & {
        innerRatio?: Ratio;
        points?: Range;
        size?: Range<Pixels>;
        type: "star";
    }

    Star Shape Entry.

    Type Declaration

    • Optional ReadonlyinnerRatio?: Ratio

      Inner Radius Ratio. Inner point distance relative to the outer radius. Lower = spikier.

      0.5

    • Optional Readonlypoints?: Range

      Number of Points. Rounded to whole numbers, clamped to 3–12. A range mixes star types.

      5

    • Optional Readonlysize?: Range<Pixels>

      Outer Diameter.

      [10, 16]

    • Readonlytype: "star"

      Shape Type.

    shapes: [{ type: "star", points: [5, 6], innerRatio: 0.45, colors: ["gold", "#fff3b0"] }]