Function

@PN, @PNR, @PD

The same picks as @pn, @pnr and @pd, but they read the enclosing sequence step. That matters inside a @doodle repeated by @m.

Syntax

  • @PN(<value>, ...)
  • @PNR(<value>, ...)
  • @PD(<value>, ...)

@PN walks the list in order, @PNR backwards, @PD in a shuffled order. Ranges expand as for @p. Without an enclosing sequence they count like the lowercase forms.

Examples

Four nested doodles from @m2x2. @PN follows that sequence, so each copy gets the next shape:

@grid: 1 / 60vmin;
background: @m2x2.doodle(
  @grid: 1 / 100%;
  background: #000;
  @shape: @PN(circle, triangle, hexagon, star);
);
background-repeat: no-repeat;
background-size: 50% 50%;
background-position: @m2x2(
  @nx(*100%, -100%) @ny(*100%, -100%)
);

See also