Neighbour's house · celworld
seed

Neighbour's house

neighbour_house v2Hand-writtenc5
Open in Playground

v2 cost

$0.00

Hand-written: no model calls.

All 2 versions$0.821

Budget

c5 · 52 lines
Shapes34 / 100
Triangles3,562 / 8,000
Draw calls2 / 4
States
open
Used in
Made
1asset neighbour_house "Neighbour's house" complexity=5
2// a neighbour's cottage, turned the other way from the hero's: a steep gable facing the street, a
3// tall window in the gable, a door under a porch roof on two posts, a bay of windows, a side
4// chimney and a bench by the door. Each seed is one of five coupled colourways (roof + walls +
5// door), so a row of them reads as different families. "open" swings the door.
6let W = 4.8..5.2
7let D = 5.6..6.2
8let H = 3.0..3.3
9let way = int(0..4)
10let roofC = sel(way, grape, leafPaint, plum, marigold, bottle)
11let wallC = sel(way, lemon, cream, peach, white, mint)
12let doorC = sel(way, teal, cherry, sky, cherry, oak)
13let skirtC = sel(way, oak, walnut, redwood, greystone, oak)
14let trimC = white
15let stoneC = warmstone:2|sandstone|greystone
16
17// footing and walls
18box plinth size=(W+.4, .26, D+.4) round=.07 color=stoneC
19box walls on=plinth at=(0, .26, 0) size=(W, H, D) round=.13 bands=[.13:wallC] color=skirtC joint
20box post x2 on=walls at=(W*.5-.06, 0, 0) row=(0, 0, D-.12) mirror size=(.3, H-.28, .3) round=.07 color=trimC
21
22// a steep roof running front to back, its gable facing the street, a ridge roll
23cyl roof on=walls at=(0, H+.55, -D*.5-.4) rot=(90, 0, 0) scale=(1, 1, 2.6/(1.5*(W*.5+.45)/.866)) h=D+.8 r=(W*.5+.45)/.866 segs=3 panels=3 phase=180 cap=wallC*.97 color=roofC
24cyl ridgecap on=walls at=(0, H+2.28, -D*.5-.47) rot=(90, 0, 0) h=D+.94 r=.14 color=roofC*.8 segs=10
25box gablewin on=walls at=(0, H+.3, D*.5+.36) size=(1.0, 1.25, .26) round=.08 color=trimC
26box gableglass on=gablewin at=(0, .12, .02) size=(.78, 1.0, .26) round=.06 bands=[.5:glassDark .55:glass] color=glass
27box chimney on=walls at=(W*.33, H+.3, -D*.25) size=(.55, 2.3, .55) round=.06 bands=[.88:greystone] color=terracotta
28
29// the door under a porch roof on two posts
30box step on=plinth at=(-W*.22, 0, D*.5+.45) size=(1.9, .3, 1.3) round=.05 color=stoneC*1.07
31box doorframe on=walls at=(-W*.22, 0, D*.5-.08) size=(1.2, 2.2, .28) round=.05 color=trimC
32rod hinge on=doorframe at=(-.46, .08, .04) to=(0, 2.0, 0) r=.03 sides=6 color=trimC joint
33box door on=hinge at=(.46, 0, 0) size=(.92, 2.0, .28) round=.05 color=doorC
34box doorwin on=door at=(0, 1.35, .15) size=(.5, .42, .04) round=.04 color=glass
35ball knob on=door at=(.32, .95, .19) r=.06 color=brass segs=8 rings=5
36box porch on=walls at=(-W*.22, 2.45, D*.5+.62) rot=(14, 0, 0) size=(2.2, .16, 1.45) round=.05 color=roofC
37rod porchpost on=step at=(.9, .3, .5) mirror to=(0, 2.0, 0) r=.06 sides=8 color=trimC
38
39// windows: a wide front window, two on each flank
40box frame on=walls at=(W*.24, .8, D*.5-.08) size=(1.5, 1.3, .26) round=.06 color=trimC
41box glass on=frame at=(0, .12, .02) size=(1.26, 1.06, .26) round=.05 stripes=[glass glassDark glass] panels=3 color=glass
42box sill on=frame at=(0, -.06, .1) size=(1.66, .14, .32) round=.04 color=doorC
43box sidewin x2 on=walls at=(W*.5-.08, .85, 0) row=(0, 0, D*.45) mirror size=(.26, 1.15, 1.1) round=.06 color=trimC
44box sideglass on=sidewin at=(.02, .1, 0) size=(.26, .95, .9) round=.05 color=glass
45
46// a little bench by the door
47box seat on=plinth at=(W*.24, .42, D*.5+.5) size=(1.3, .12, .42) round=.04 color=doorC
48box seatleg x2 on=seat at=(0, -.42, 0) row=(1.0, 0, 0) size=(.12, .42, .36) round=.03 color=doorC*.8
49
50// life: chimney smoke; "open" swings the door
51fx puff on=chimney at=top+(0, .05, 0) n=4 hz=.3 size=.11 grow=2.4
52anim open: hinge ry keys=[0:0 .3:-75 .75:-75 1:0] hz=.4
53