Playground
From carousel · Compiles in your browser · $0
CtrlShiftS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
asset carousel "Carousel" complexity=7// an original fairground carousel: a turning deck on a plinth, a striped centre drum, a ring of// prancing horses on brass poles that rise and fall in turn, a scalloped striped canopy with a// fringe of drops and bulbs, a spire and a pennantlet R = 2.1..2.5let PH = 2.1..2.4let NH = int(5..7.4)let stA = cherry:3|cobalt|teal|grape|bottlelet stB = white:3|cream|sunflowerlet deckC = cream:2|white|peachlet metal = brass:3|silver// the plinth and the turning deckcyl plinth h=.16 r=R+.14 round=.04 color=warmstone segs=28 surface=stonecyl deck on=plinth at=(0, .16, 0) h=.12 r=R round=.03 bands=[.55:deckC] color=stA segs=28 joint surface=plankscyl drum on=deck at=(0, .12, 0) h=PH r=.42 stripes=[stA stB] panels=8 color=stA segs=16cyl drumcap on=drum at=(0, PH*.82, 0) h=.08 r=.5 color=metal segs=16 surface=metal// the canopy: a striped band with drops and bulbs, a scalloped roof, a spire with a pennantcyl band on=drum at=(0, PH, 0) h=.34 r=R+.18 stripes=[stB stA] panels=2*NH*2 cap=stB color=stB segs=36ball drop x=2*NH*2 on=band ring at=(R+.16, 0, 0) r=(.05, .13, R*.12) color=sel(i - 2*floor(i/2), stA, stB) segs=6 rings=4ball bulb x=2*NH on=band ring ring0=180/(2*NH) at=(R+.19, .17, 0) r=.035 color=glow ink=glow segs=6 rings=4cone roof on=band at=(0, .34, 0) h=1.1 r=R+.32 r2=.08 stripes=[stA stB] panels=2*NH*2 scallop=.07 color=stA segs=40 surface=fabriccyl spire on=roof at=(0, 1.05, 0) h=.32 r=.045 color=metal segs=8 surface=metalball knob on=spire at=end r=.08 color=metal segs=10 rings=6 surface=metalslab pennant on=spire at=(.04, .14, 0) pts=[0,0 .5,.09 0,.18] t=.02 color=stB edge=stA surface=fabric// the horses, one per polerod pole x=NH on=deck ring at=(R*.72, .12, 0) to=(0, PH, 0) r=.035 sides=8 color=metal surface=metalball horse x=NH on=deck ring at=(R*.72, 1.05, 0) rot=(0, 180, 0) r=(.17, .2, .38) color=white:3|cream|sky|pink|lilac|mint|sunflower|walnut:.6 segs=14 rings=9 jointlimb neck on=horse at=(0, .48, .4) rot=(25, 0, 0) len=.38 r=(.075, .105) color=parent.color segs=8ball head on=horse at=(0, .52, .52) rot=(24, 0, 0) r=(.09, .1, .19) color=parent.color segs=12 rings=7face look on=head eyes=dot mouth=none size=.24 spacing=62 eyeY=16 detail=.5cone ear on=head at=(0, .08, -.08) mirror rot=(-12, 0, -14) h=.09 r=.035 color=parent.color segs=5tube mane on=horse pts=[0,.62,.36 0,.48,.28 0,.33,.2 0,.2,.12] r=(.06, .045) smooth color=sel(parent.i, sunflower, cherry, cobalt, grape, lime, pink, teal, tangerine) sides=6 detail=.5tube tail on=horse at=(0, .08, -.36) pts=[0,0,0 0,-.02,-.14 0,-.2,-.24 0,-.34,-.22] r=(.06, .025) smooth color=sel(parent.i, sunflower, cherry, cobalt, grape, lime, pink, teal, tangerine) sides=6 detail=.5ball saddle on=horse at=(0, .12, -.03) r=(.2, .1, .17) half color=sel(parent.i, cobalt, teal, cherry, sunflower, grape, cherry, cobalt, teal) segs=12 rings=4rod fleg on=horse at=(.08, -.06, .24) mirror to=(0, -.18, .26) r=(.045, .035) sides=6 color=parent.colorrod fshin on=fleg at=end to=(0, -.2, -.04) r=(.035, .03) sides=6 color=parent.colorrod bleg on=horse at=(.08, -.1, -.24) mirror to=(0, -.38, -.16) r=(.05, .035) sides=6 color=parent.colorball hoof on=fshin at=end r=.04 color=metal segs=5 rings=3 surface=metalball bhoof on=bleg at=end r=.04 color=metal segs=5 rings=3 surface=metal// a rider astride every saddle, facing the head: they rise and fall with the horsespot rider on=horse at=(0, .2, -.04) use=saddleanim deck ry spin hz=.05anim horse py sin amp=.12 hz=.4 stagger=.37
Clean: no issues on this seed.
Loading
seed
Shapes— / 200
Triangles— / 15,000
Draw calls— / 5