← Studio

Rose curve

r = cos(k · θ), k = n / d

A rose is a sine wave wrapped around a point. Guido Grandi named the family in the 1720s. With k = n/d in lowest terms, the curve closes after π·d turns when n·d is odd and 2π·d when it is even, and it has n petals or 2n petals respectively. Fractional k makes the petals overlap and weave.

source_sha256 aefa5e6692462e8c83165d5ef3e03b68df67e6073a16aa44a0836ffa3ff482be · lib/algorithms/rose.ts · Waves and oscillation

Parameters

This algorithm is deterministic; the seed is recorded but does not change the picture.

Edition ID

…

Not registered. Every parameter set is a distinct edition with its own ID.

{
  "algorithm": "rose",
  "params": {
    "d": 4,
    "n": 5,
    "stroke": 1.4
  },
  "seed": 1,
  "source_sha256": "aefa5e6692462e8c83165d5ef3e03b68df67e6073a16aa44a0836ffa3ff482be",
  "spec": "cg-recipe/1"
}