Property

@seed

Set the random seed from inside the code, so the doodle renders the same every time.

Syntax

  • @seed: <seed>
seed
Any value. It takes precedence over the seed attribute. Read the seed in use with the seed property.

Examples

@grid: 6 / 60vmin _1px;
@seed: 1234567;
background: @p(#000, #e6437d, #ebbf4d);
scale: @r(.5, 1);

The property is handy when sharing code: the recipient gets the exact image without touching the HTML. To find a seed you like, read it back with the seed property.

See also