Playground
From sun_lamp · 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
asset sun_lamp "Sunny the sun lamp" complexity=5// the Sun Room's centrepiece and the company mascot: a big glowing sun with a sleepy-happy face, held// up on a curved brass arm from a round stepped base, with a crown of chunky rays that slowly turns and// a halo ring; it bobs gently like it is floatinglet S = .95..1.05let sunC = sunflower:3|marigoldlet rayC = tangerine:2|marigold|corallet baseC = navy:2|plum|walnut|teallet metal = brass:3|copper// the base and the armcyl base h=.16 r=.6*S round=.05 color=baseC segs=32cyl step on=base at=(0, .16, 0) h=.1 r=.42*S round=.04 color=baseC*1.15 segs=28tube arm on=step at=(0, .1, 0) pts=[0,0,0 0,.6,-.05 .05,1.2,-.25 0,1.65,-.45 0,1.95,-.4] r=(.06, .045) smooth sides=10 color=metal// the sun: a glowing ball with a face, a ring of rays and a haloball sun on=arm at=(0, 2.15*S, -.05) r=.5*S color=sunC ink=glow segs=28 rings=18 jointface sunny on=sun eyes=happy mouth=grin blush size=.16 spacing=24 eyeY=10 mouthY=-18 mouthW=.42cyl hub on=sun at=(0, 0, -.06) rot=(90, 0, 0) h=.04 r=.1 color=rayC segs=10 jointcone ray x12 on=hub ring at=(.66*S, .02, 0) rot=(0, 0, -90) h=.26*S r=.09*S depth=.5 color=sel(i, rayC, sunC, rayC, sunC, rayC, sunC, rayC, sunC, rayC, sunC, rayC, sunC) ink=glow segs=8torus halo on=sun rot=(90, 0, 0) at=(0, 0, -.12) R=.98*S r=.03 color=sunC*1.1 ink=glow segs=48 sides=6anim sun py sin amp=.04 hz=.35anim hub ry spin hz=.05
Clean: no issues on this seed.
Loading
seed
Shapes— / 100
Triangles— / 8,000
Draw calls— / 4