&

Fork

Picked

Code

--pop(): @p.palette(5, #2b80f6);

--letter(g = 0): polygon { 
  text: &; 
  font: 100 cursive; 
  scale: .48;
  grow: $g;
};

--flower(): @svg(
  viewBox: -1 -1 2 2;
  polygon { points: @Plot(points: 100; r: .55 + .45 * abs(cos(2.5t))); fill: $pop() }
  circle { r: .22; fill: #fff4e8 }
  circle { r: .1; fill: $pop() }
);

--curl(): @svg(
  viewBox: -1 -1 2 2;
  polyline { 
    points: @Plot(points: 80; r: .92 * exp(-.2t); turn: 1.8); 
    fill: none; stroke: $pop(); stroke-width: .13; stroke-linecap: round 
  }
);

--berries(): @svg(
  viewBox: -1 -1 2 2;
  circle*3 { r: .4; cx, cy: @Plot(r: .52); fill: $pop() }
);

@grid: 1x480 / 600px / #fff @svg-polygon($letter(); fill: #2b80f6; stroke: none);
@size: calc(2 * @tile.r);
@place: @tile.circle(
  size: 1.6+d; 
  gap: .1;
  subtract { 
    square { scale: .93 } 
    $letter(.05) 
  } 
);

rotate: @r(360deg);
background: @p($flower() x5, $curl() x2, $berries());
scale: $(clamp(@t/400 - hypot(@tile.x - 50, @tile.y - 50)/15, 0, 1));