String lights · celworld
seed

String lights

string_lights v1Agent-madec3
Open in Playground

v1 cost

$0.707est.

Agent-made: its share of a Claude Code session, priced as API-equivalent Opus 5.5.

Output share
1.9k
Time share
82s
The agent session
All 1 version$0.707

Budget

c3 · 31 lines
Shapes44 / 45
Triangles3,766 / 4,500
Draw calls2 / 3
States
None: it rests
Used in
Made
1asset string_lights "String lights" complexity=3
2// a 6 m span of festoon bulbs over the midway: two striped poles on weighted feet, a sagging wire
3// hung with a dozen glowing bulbs in a repeating colour run, and little pennants in between. Static
4// on purpose: the bulbs glow through their own colour, so a whole run of spans batches as one.
5let H = 3.4..3.6
6let poleC = cherry:2|cobalt|teal|grape
7let poleB = cream:3|white
8let baseC = navy:2|plum
9let metal = brass:3|silver
10let bulbA = glow:3|sunflower
11let bulbB = pink:2|cherry
12let bulbC = aqua:2|mint|sky
13let bulbD = tangerine:2|marigold
14let flagA = sunflower|pink|aqua|lime
15let flagB = cherry|cobalt|grape|teal
16
17// the poles on their feet
18cyl foot at=(3.3, 0, 0) mirror h=.24 r=.24 round=.06 color=baseC segs=12
19cyl pole on=foot at=(0, .24, 0) h=H-.24 r=.07 stripes=[poleC poleB] panels=4 bands=[.06:poleB .1:poleC .92:metal] color=poleC segs=10
20ball knob on=pole at=end r=.11 color=metal segs=10 rings=6
21ball cap on=pole at=(0, H-.55, 0) r=(.12, .06, .12) color=metal segs=10 rings=4
22
23// the wire: a gentle sag between the pole tops
24tube wire pts=[-3.3,3.38,0 -2.2,3.03,0 -1.1,2.83,0 0,2.76,0 1.1,2.83,0 2.2,3.03,0 3.3,3.38,0] r=.025 smooth sides=5 color=baseC
25
26// a dozen bulbs hanging from it, sockets on top
27ball bulb x12 at=(-2.86 + 5.72*t, 2.76 + .62*(-2.86 + 5.72*t)*(-2.86 + 5.72*t)/10.89 - .14, 0) r=(.1, .12, .1) color=sel(i - 4*floor(i/4), bulbA, bulbB, bulbC, bulbD) ink=glow segs=10 rings=6
28cyl socket on=bulb at=(0, .06, 0) h=.08 r=.045 color=baseC segs=6
29
30// pennants between the bulbs
31slab flag x11 at=(-2.6 + 5.2*t, 2.76 + .62*(-2.6 + 5.2*t)*(-2.6 + 5.2*t)/10.89 - .02, 0) pts=[-.13,0 .13,0 0,-.3] t=.04 round=.012 color=sel(i - 2*floor(i/2), flagA, flagB)
32