siteIcon

Tech Novice Tools

JS Grafix Sandbox

burgerIcon
spiral

JSGrafix Sandbox (JSGS)

Scattered Peppermints

Your browser does not support HTML5 Canvas

Notes:

A 'tiling' of TwoTonedSquares in the plane. The peppermints are rotated randomly in [0, 360] and the 'type' of peppermint (there are 4 'types' of tntTwoTonedSquares) is chosen using the modulus operator.

Features:

Comments:

var rotn = Math.floor(Math.random() * 360);

Even More:
                                        type += 1;
            type = type % 5;
            if (type == 0) type = 1;