pattern.js

麻の葉, Asa no ha

Pattern.asanoha({
    canvas: canvas,
    style: Pattern.styles.darkBlue,
    size: 100,
    lineDrawer: Pattern.drawers.line(2),
});
Pattern.asanoha({
    canvas: canvas,
    style: Pattern.styles.darkRed,
    size: 100,
    lineDrawer: Pattern.drawers.dottedLine(2, 8),
});

七宝, Shippou

Pattern.shippou({
    canvas: canvas,
    style: Pattern.styles.purple,
    lineWidth: 4,
    radius: 40,
});

青海波, Seigaiha

Pattern.seigaiha({
    canvas: canvas,
    style: Pattern.styles.monochrome,
    lineWidth: 3,
    radius: 55,
    lineSpacing: 10,
    count: 5,
    alternating: false,
});
Pattern.seigaiha({
    canvas: canvas, 
    style: Pattern.styles.sky,
    lineWidth: 2, 
    radius: 80,
    lineSpacing: 7, 
    count: 11,
    alternating: false,
});
Pattern.seigaiha({
    canvas: canvas,
    style: Pattern.styles.blues,
    lineWidth: 3,
    radius: 44,
    lineSpacing: 8,
    count: 5,
    alternating: true
});

紗綾形, Sayagata

Pattern.sayagata({
    canvas: canvas,
    style: Pattern.styles.purples,
    featureLength: 10,
    angle: Math.PI / 3,
    lineWidth: 1,
});

Unknown

Pattern.unknown({
    canvas: canvas,
    style: Pattern.styles.monochrome,
    featureLength: 60,
    spacing: 6,
});