konfeti - v0.6.0
    Preparing search index...

    Type Alias RibbonShapeOptions

    RibbonShapeOptions: ShapeEntryBase & {
        length?: Range<Pixels>;
        thickness?: Ratio;
        type: "ribbon";
        waves?: number;
    }

    Curly Ribbon (Streamer) Shape Entry. A long, wavy band — looks best with flip: { axis: "y" } and slower gravity.

    Type Declaration

    • Optional Readonlylength?: Range<Pixels>

      Ribbon Length.

      [18, 30]

    • Optional Readonlythickness?: Ratio

      Band Thickness Relative to Length.

      0.14

    • Readonlytype: "ribbon"

      Shape Type.

    • Optional Readonlywaves?: number

      Number of Curls. Half sine waves along the length (whole numbers, 1–8).

      2

    shapes: [{ type: "ribbon", length: [24, 40], waves: 3 }]