Playground
From garden_plot · 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
asset garden_plot "Garden plot" complexity=3// a raised vegetable bed for a fenced garden: a plank frame round a mounded soil bed, three rows of// crops (each row a seeded pick of cabbages, carrots or tomatoes on stakes), a watering can at the// corner. The leaves nod in the breeze.let L = 2.4..2.7let Wd = 1.5..1.7let woodC = oak:2|walnut|driftwoodlet canC = sky:2|leafPaint|cherry|silverlet rowA = int(0..2)let rowB = int(0..2)let rowC = int(0..2)box frame size=(L, .3, Wd) round=.05 color=woodCbox soil on=frame at=(0, .05, 0) size=(L-.2, .3, Wd-.2) round=.1 color=bedSoil// three rows of four plants; each row picks its cropball plant x4 on=soil at=(0, .3, -Wd*.3) row=(L*.22, 0, 0) r=sel(rowA, (.17, .14, .17), (.09, .06, .09), (.12, .1, .12)) color=sel(rowA, leafB, tangerine, leafA) under=sel(rowA, leafLight, tangerine, leafA) segs=10 rings=6 jointball plant2 x4 on=soil at=(0, .3, 0) row=(L*.22, 0, 0) r=sel(rowB, (.17, .14, .17), (.09, .06, .09), (.12, .1, .12)) color=sel(rowB, leafB, tangerine, leafA) under=sel(rowB, leafLight, tangerine, leafA) segs=10 rings=6 jointball plant3 x4 on=soil at=(0, .3, Wd*.3) row=(L*.22, 0, 0) r=sel(rowC, (.17, .14, .17), (.09, .06, .09), (.12, .1, .12)) color=sel(rowC, leafB, tangerine, leafA) under=sel(rowC, leafLight, tangerine, leafA) segs=10 rings=6 joint// tops: cabbage hearts, carrot fronds, tomato stakes with fruitball heart on=plant at=(0, .08, 0) r=.09 color=lime segs=8 rings=5 if=rowA==0cone frond on=plant at=(0, .03, 0) h=.26 r=.07 depth=.4 color=leafPaint segs=6 if=rowA==1rod stake on=plant to=(0, .55, 0) r=.018 sides=5 color=woodC if=rowA==2ball fruit on=plant at=(.07, .25, .06) r=.055 color=fruitRed segs=8 rings=5 if=rowA==2ball heart2 on=plant2 at=(0, .08, 0) r=.09 color=lime segs=8 rings=5 if=rowB==0cone frond2 on=plant2 at=(0, .03, 0) h=.26 r=.07 depth=.4 color=leafPaint segs=6 if=rowB==1rod stake2 on=plant2 to=(0, .55, 0) r=.018 sides=5 color=woodC if=rowB==2ball fruit2 on=plant2 at=(.07, .25, .06) r=.055 color=fruitRed segs=8 rings=5 if=rowB==2ball heart3 on=plant3 at=(0, .08, 0) r=.09 color=lime segs=8 rings=5 if=rowC==0cone frond3 on=plant3 at=(0, .03, 0) h=.26 r=.07 depth=.4 color=leafPaint segs=6 if=rowC==1rod stake3 on=plant3 to=(0, .55, 0) r=.018 sides=5 color=woodC if=rowC==2ball fruit3 on=plant3 at=(.07, .25, .06) r=.055 color=fruitRed segs=8 rings=5 if=rowC==2// a watering can at the cornercyl can on=frame at=(L*.5+.25, 0, Wd*.3) h=.3 r=.13 round=.03 color=canC segs=12rod spout on=can at=(.1, .1, 0) to=(.22, .16, 0) r=(.03, .02) sides=6 color=canCtorus handle on=can at=(0, .3, 0) rot=(90, 0, 0) R=.09 r=.02 arc=180 color=canC segs=10 sides=4anim plant rz sin amp=4 hz=.5 stagger=.2anim plant2 rz sin amp=4 hz=.5 stagger=.2 phase=.3anim plant3 rz sin amp=4 hz=.5 stagger=.2 phase=.6
Clean: no issues on this seed.
Loading
seed
Shapes— / 45
Triangles— / 4,500
Draw calls— / 3