// A district of perimeter blocks around a stepped hall. The size of the whole plan comes from the Parameters below. sfl 1.11 Parameters district { cols: 3 // 2..4 step 1, Blocks across rows: 3 // 2..4 step 1, Blocks down block: 72 // 50..90 step 2, Block size, m street: 16 // 10..24 step 2, Street width, m depth: 14 // 10..18 step 1, Building depth, m storeys: 5 // 3..8 step 1, Storeys x0: 60 y0: 140 mapWidth: 880 mapHeight: 880 totalX: cols * block + (cols + 1) * street totalY: rows * block + (rows + 1) * street s: min(mapWidth / totalX, mapHeight / totalY) blockPx: block * s streetPx: street * s depthPx: depth * s pitch: blockPx + streetPx hallCol: floor(cols / 2) hallRow: floor(rows / 2) units: floor(block / 12) court: block - 2 * depth footprint: block * block - court * court blocks: cols * rows - 1 siteArea: totalX * totalY floorArea: blocks * footprint * storeys storeyHeight: 3.2 e: 300 / block sectionScale: min(8, 340 / (2 * depth + street), 170 / (storeys * storeyHeight)) hallRise: storeyHeight * s * 0.8 } Style thin { stroke: "#55554f" strokeWidth: 0.6 fill: none } Style hair { stroke: "#b5b3a8" strokeWidth: 0.4 fill: none } Style white_line { stroke: "#f2f1ea" strokeWidth: 0.7 fill: none } Style centre_line { stroke: "#ffffff" strokeWidth: 1 fill: none dash: "[10,8]" } Style slab { shape: rectangle fill: "#141414" stroke: none } Template perimeter_block { Path building { points: [[x, y], [x + blockPx, y], [x + blockPx, y + blockPx], [x, y + blockPx]] closed: true style { stroke: "#141414" strokeWidth: 0.8 fill: "#26262a" cornerRadius: 6 } } Path yard { points: [[x + depthPx, y + depthPx], [x + blockPx - depthPx, y + depthPx], [x + blockPx - depthPx, y + blockPx - depthPx], [x + depthPx, y + blockPx - depthPx]] closed: true style { stroke: "#141414" strokeWidth: 0.6 fill: "#fbfaf5" cornerRadius: 10 } } Path garden { points: [[x + blockPx * 0.42, y + blockPx * 0.42], [x + blockPx * 0.58, y + blockPx * 0.42], [x + blockPx * 0.58, y + blockPx * 0.58], [x + blockPx * 0.42, y + blockPx * 0.58]] closed: true style { stroke: "#8fa578" strokeWidth: 0.6 fill: "#d7e2bf" cornerRadius: 6 } } Shape yard_tree_a { layout { position: x + blockPx * 0.34 - blockPx * 0.025, y + blockPx * 0.34 - blockPx * 0.025 size: blockPx * 0.05, blockPx * 0.05 } style { shape: circle fill: "#d7e2bf" stroke: "#8fa578" strokeWidth: 0.5 } } Shape yard_tree_b { layout { position: x + blockPx * 0.66 - blockPx * 0.025, y + blockPx * 0.66 - blockPx * 0.025 size: blockPx * 0.05, blockPx * 0.05 } style { shape: circle fill: "#d7e2bf" stroke: "#8fa578" strokeWidth: 0.5 } } } Template tree { crown: 5 Shape leaves { layout { position: x - crown, y - crown size: crown * 2, crown * 2 } style { shape: circle fill: "#d7e2bf" stroke: "#8fa578" strokeWidth: 0.6 } } } Model city_block { Screen sheet { clip: true style { fill: "#f6f5ef" } layout { position: 0, 0 size: 1400, 1480 } Text t1 { text: "CITY BLOCK" layout { position: 60, 40 size: 500, 48.0 } style { fontSize: 30 fontWeight: 700 textColor: "#141414" textAlign: left letterSpacing: 3 } } Text t2 { text: cols + " x " + rows + " blocks of " + block + " m around a stepped hall, on streets of " + street + " m" layout { position: 60, 84 size: 800, 19.2 } style { fontSize: 12 fontWeight: 400 textColor: "#55554f" textAlign: left } } Path p3 { points: [[60, 112], [1340, 112]] style { stroke: "#141414" strokeWidth: 1.4 fill: none } } Path p4 { points: [[x0, y0], [x0 + totalX * s, y0], [x0 + totalX * s, y0 + totalY * s], [x0, y0 + totalY * s]] closed: true style { stroke: "#b5b3a8" strokeWidth: 0.8 fill: "#dcdbd3" cornerRadius: 20 } } Repeat r5 { count: cols + 1 Path road_v : centre_line { points: [[x0 + col * pitch + streetPx / 2, y0 + 8], [x0 + col * pitch + streetPx / 2, y0 + totalY * s - 8]] } } Repeat r6 { count: rows + 1 Path road_h : centre_line { points: [[x0 + 8, y0 + col * pitch + streetPx / 2], [x0 + totalX * s - 8, y0 + col * pitch + streetPx / 2]] } } Repeat r7 { columns: cols rows: rows where: col != hallCol || row != hallRow Use block_at : perimeter_block { at: x0 + streetPx + col * pitch, y0 + streetPx + row * pitch } } Repeat r8 { columns: cols * (units - 1) rows: rows bx: floor(col / (units - 1)) k: col - bx * (units - 1) + 1 at_x: x0 + streetPx + bx * pitch at_y: y0 + streetPx + row * pitch where: (bx != hallCol || row != hallRow) && k * blockPx / units > depthPx && k * blockPx / units < blockPx - depthPx Path wall_n : white_line { points: [[at_x + k * blockPx / units, at_y + 1], [at_x + k * blockPx / units, at_y + depthPx - 1]] } } Repeat r9 { columns: cols * (units - 1) rows: rows bx: floor(col / (units - 1)) k: col - bx * (units - 1) + 1 at_x: x0 + streetPx + bx * pitch at_y: y0 + streetPx + row * pitch where: (bx != hallCol || row != hallRow) && k * blockPx / units > depthPx && k * blockPx / units < blockPx - depthPx Path wall_s : white_line { points: [[at_x + k * blockPx / units, at_y + blockPx - depthPx + 1], [at_x + k * blockPx / units, at_y + blockPx - 1]] } } Repeat r10 { columns: cols * (units - 1) rows: rows bx: floor(col / (units - 1)) k: col - bx * (units - 1) + 1 at_x: x0 + streetPx + bx * pitch at_y: y0 + streetPx + row * pitch where: (bx != hallCol || row != hallRow) && k * blockPx / units > depthPx && k * blockPx / units < blockPx - depthPx Path wall_w : white_line { points: [[at_x + 1, at_y + k * blockPx / units], [at_x + depthPx - 1, at_y + k * blockPx / units]] } } Repeat r11 { columns: cols * (units - 1) rows: rows bx: floor(col / (units - 1)) k: col - bx * (units - 1) + 1 at_x: x0 + streetPx + bx * pitch at_y: y0 + streetPx + row * pitch where: (bx != hallCol || row != hallRow) && k * blockPx / units > depthPx && k * blockPx / units < blockPx - depthPx Path wall_e : white_line { points: [[at_x + blockPx - depthPx + 1, at_y + k * blockPx / units], [at_x + blockPx - 1, at_y + k * blockPx / units]] } } Repeat r12 { columns: cols * units rows: rows bx: floor(col / units) k: col - bx * units + 0.5 at_x: x0 + streetPx + bx * pitch at_y: y0 + streetPx + row * pitch where: (bx != hallCol || row != hallRow) && k * blockPx / units > depthPx && k * blockPx / units < blockPx - depthPx Shape core_n { layout { position: at_x + k * blockPx / units - 2, at_y + depthPx / 2 - 2 size: 4, 4 } style { shape: rectangle fill: "#8b8a84" stroke: none } } } Repeat r13 { columns: cols * units rows: rows bx: floor(col / units) k: col - bx * units + 0.5 at_x: x0 + streetPx + bx * pitch at_y: y0 + streetPx + row * pitch where: (bx != hallCol || row != hallRow) && k * blockPx / units > depthPx && k * blockPx / units < blockPx - depthPx Shape core_s { layout { position: at_x + k * blockPx / units - 2, at_y + blockPx - depthPx / 2 - 2 size: 4, 4 } style { shape: rectangle fill: "#8b8a84" stroke: none } } } Repeat r14 { columns: cols * units rows: rows bx: floor(col / units) k: col - bx * units + 0.5 at_x: x0 + streetPx + bx * pitch at_y: y0 + streetPx + row * pitch where: (bx != hallCol || row != hallRow) && k * blockPx / units > depthPx && k * blockPx / units < blockPx - depthPx Shape core_w { layout { position: at_x + depthPx / 2 - 2, at_y + k * blockPx / units - 2 size: 4, 4 } style { shape: rectangle fill: "#8b8a84" stroke: none } } } Repeat r15 { columns: cols * units rows: rows bx: floor(col / units) k: col - bx * units + 0.5 at_x: x0 + streetPx + bx * pitch at_y: y0 + streetPx + row * pitch where: (bx != hallCol || row != hallRow) && k * blockPx / units > depthPx && k * blockPx / units < blockPx - depthPx Shape core_e { layout { position: at_x + blockPx - depthPx / 2 - 2, at_y + k * blockPx / units - 2 size: 4, 4 } style { shape: rectangle fill: "#8b8a84" stroke: none } } } Repeat r16 { columns: cols rows: rows even: floor((col + row) / 2) * 2 == col + row at_x: x0 + streetPx + col * pitch at_y: y0 + streetPx + row * pitch where: col != hallCol || row != hallRow Shape gate { layout { position: when(even, at_x + blockPx / 2 - blockPx * 0.1 / 2, at_x + blockPx - depthPx), when(even, at_y + blockPx - depthPx, at_y + blockPx / 2 - blockPx * 0.1 / 2) size: when(even, blockPx * 0.1, depthPx), when(even, depthPx, blockPx * 0.1) } style { shape: rectangle fill: "#fbfaf5" stroke: none } } } Path p17 { points: [[x0 + streetPx + hallCol * pitch, y0 + streetPx + hallRow * pitch], [x0 + streetPx + hallCol * pitch + blockPx, y0 + streetPx + hallRow * pitch], [x0 + streetPx + hallCol * pitch + blockPx, y0 + streetPx + hallRow * pitch + blockPx], [x0 + streetPx + hallCol * pitch, y0 + streetPx + hallRow * pitch + blockPx]] closed: true style { stroke: "#b5b3a8" strokeWidth: 0.7 fill: "#ece9dd" cornerRadius: 14 } } Repeat r18 { count: 11 where: col > 0 Path pave_x : hair { points: [[x0 + streetPx + hallCol * pitch + col * blockPx / 11, y0 + streetPx + hallRow * pitch + 3], [x0 + streetPx + hallCol * pitch + col * blockPx / 11, y0 + streetPx + hallRow * pitch + blockPx - 3]] } } Repeat r19 { count: 11 where: col > 0 Path pave_y : hair { points: [[x0 + streetPx + hallCol * pitch + 3, y0 + streetPx + hallRow * pitch + col * blockPx / 11], [x0 + streetPx + hallCol * pitch + blockPx - 3, y0 + streetPx + hallRow * pitch + col * blockPx / 11]] } } Repeat r20 { count: 7 inset: blockPx * 0.14 + col * blockPx * 0.035 Path step { points: [[x0 + streetPx + hallCol * pitch + inset, y0 + streetPx + hallRow * pitch + inset], [x0 + streetPx + hallCol * pitch + blockPx - inset, y0 + streetPx + hallRow * pitch + inset], [x0 + streetPx + hallCol * pitch + blockPx - inset, y0 + streetPx + hallRow * pitch + blockPx - inset], [x0 + streetPx + hallCol * pitch + inset, y0 + streetPx + hallRow * pitch + blockPx - inset]] closed: true style { stroke: "#141414" strokeWidth: when(col == 0, 1.8, 0.7) fill: "#ffffff" cornerRadius: 26 - col * 3 } } } Repeat r21 { count: 6 Path stair_n : thin { points: [[x0 + streetPx + hallCol * pitch + blockPx / 2 - blockPx * 0.09, y0 + streetPx + hallRow * pitch + blockPx * 0.14 - 2 - col * blockPx * 0.018], [x0 + streetPx + hallCol * pitch + blockPx / 2 + blockPx * 0.09, y0 + streetPx + hallRow * pitch + blockPx * 0.14 - 2 - col * blockPx * 0.018]] } } Repeat r22 { count: 6 Path stair_s : thin { points: [[x0 + streetPx + hallCol * pitch + blockPx / 2 - blockPx * 0.09, y0 + streetPx + hallRow * pitch + blockPx * 0.86 + 2 + col * blockPx * 0.018], [x0 + streetPx + hallCol * pitch + blockPx / 2 + blockPx * 0.09, y0 + streetPx + hallRow * pitch + blockPx * 0.86 + 2 + col * blockPx * 0.018]] } } Repeat r23 { count: 6 Path stair_w : thin { points: [[x0 + streetPx + hallCol * pitch + blockPx * 0.14 - 2 - col * blockPx * 0.018, y0 + streetPx + hallRow * pitch + blockPx / 2 - blockPx * 0.09], [x0 + streetPx + hallCol * pitch + blockPx * 0.14 - 2 - col * blockPx * 0.018, y0 + streetPx + hallRow * pitch + blockPx / 2 + blockPx * 0.09]] } } Repeat r24 { count: 6 Path stair_e : thin { points: [[x0 + streetPx + hallCol * pitch + blockPx * 0.86 + 2 + col * blockPx * 0.018, y0 + streetPx + hallRow * pitch + blockPx / 2 - blockPx * 0.09], [x0 + streetPx + hallCol * pitch + blockPx * 0.86 + 2 + col * blockPx * 0.018, y0 + streetPx + hallRow * pitch + blockPx / 2 + blockPx * 0.09]] } } Text t25 { text: "HALL" layout { position: (x0 + streetPx + hallCol * pitch + blockPx / 2) - 50.0, y0 + streetPx + hallRow * pitch + blockPx / 2 - 8 size: 100, 17.6 } style { fontSize: 11 fontWeight: 700 textColor: "#141414" textAlign: center letterSpacing: 1 } } Repeat r26 { columns: cols + 1 rows: rows * floor(block / 12) perBlock: floor(block / 12) blockIndex: floor(row / perBlock) k: row - blockIndex * perBlock Use tree_v : tree { at: x0 + col * pitch + streetPx * 0.16, y0 + streetPx + blockIndex * pitch + (k + 0.5) * blockPx / perBlock crown: min(5, streetPx * 0.14) } } Repeat r27 { columns: cols * floor(block / 12) rows: rows + 1 perBlock: floor(block / 12) blockIndex: floor(col / perBlock) k: col - blockIndex * perBlock Use tree_h : tree { at: x0 + streetPx + blockIndex * pitch + (k + 0.5) * blockPx / perBlock, y0 + row * pitch + streetPx * 0.16 crown: min(5, streetPx * 0.14) } } Repeat r28 { columns: cols + 1 rows: rows * floor(block / 12) perBlock: floor(block / 12) blockIndex: floor(row / perBlock) k: row - blockIndex * perBlock Use tree_v2 : tree { at: x0 + col * pitch + streetPx * 0.84, y0 + streetPx + blockIndex * pitch + (k + 0.5) * blockPx / perBlock crown: min(5, streetPx * 0.14) } } Repeat r29 { columns: cols * floor(block / 12) rows: rows + 1 perBlock: floor(block / 12) blockIndex: floor(col / perBlock) k: col - blockIndex * perBlock Use tree_h2 : tree { at: x0 + streetPx + blockIndex * pitch + (k + 0.5) * blockPx / perBlock, y0 + row * pitch + streetPx * 0.84 crown: min(5, streetPx * 0.14) } } Repeat r30 { columns: cols * 5 rows: rows + 1 i: floor(col / 5) k: col - i * 5 cx: x0 + i * pitch + streetPx cy: y0 + row * pitch Path zebra_e { points: [[cx + 2, cy + 3 + k * (streetPx - 6) / 4], [cx + 2 + min(9, blockPx * 0.08), cy + 3 + k * (streetPx - 6) / 4]] style { stroke: "#ffffff" strokeWidth: 1.6 fill: none } } } Repeat r31 { columns: (cols + 1) * 5 rows: rows i: floor(col / 5) k: col - i * 5 cx: x0 + i * pitch cy: y0 + row * pitch + streetPx Path zebra_s { points: [[cx + 3 + k * (streetPx - 6) / 4, cy + 2], [cx + 3 + k * (streetPx - 6) / 4, cy + 2 + min(9, blockPx * 0.08)]] style { stroke: "#ffffff" strokeWidth: 1.6 fill: none } } } Dimension d32 { text: "" + street start: x0, y0 - 4 end: x0 + streetPx, y0 - 4 offset: 8 style { stroke: "#55554f" strokeWidth: 0.6 textColor: "#141414" fontSize: 9 } } Dimension d33 { text: "" + block start: x0 + streetPx, y0 - 4 end: x0 + streetPx + blockPx, y0 - 4 offset: 8 style { stroke: "#55554f" strokeWidth: 0.6 textColor: "#141414" fontSize: 9 } } Dimension d34 { text: "" + totalY start: x0 + totalX * s, y0 end: x0 + totalX * s, y0 + totalY * s offset: 14 style { stroke: "#55554f" strokeWidth: 0.6 textColor: "#141414" fontSize: 9 } } Dimension d35 { text: "" + totalX start: x0, y0 + totalY * s + 8 end: x0 + totalX * s, y0 + totalY * s + 8 offset: -14 style { stroke: "#55554f" strokeWidth: 0.6 textColor: "#141414" fontSize: 9 } } Text t36 { text: "Figures" layout { position: 1000, 140 size: 240, 19.2 } style { fontSize: 12 fontWeight: 700 textColor: "#141414" textAlign: left letterSpacing: 0.5 } } Text t37 { text: "Blocks" layout { position: 1000, 166 size: 190, 16.0 } style { fontSize: 10 fontWeight: 400 textColor: "#141414" textAlign: left } } Text t38 { text: "" + blocks layout { position: (1340) - 140, 166 size: 140, 16.0 } style { fontSize: 10 fontWeight: 600 textColor: "#141414" textAlign: right } } Path p39 : hair { points: [[1000, 185], [1340, 185]] } Text t40 { text: "Site" layout { position: 1000, 190 size: 190, 16.0 } style { fontSize: 10 fontWeight: 400 textColor: "#141414" textAlign: left } } Text t41 { text: round(siteArea / 100) / 100 + " ha" layout { position: (1340) - 140, 190 size: 140, 16.0 } style { fontSize: 10 fontWeight: 600 textColor: "#141414" textAlign: right } } Path p42 : hair { points: [[1000, 209], [1340, 209]] } Text t43 { text: "Footprint of a block" layout { position: 1000, 214 size: 190, 16.0 } style { fontSize: 10 fontWeight: 400 textColor: "#141414" textAlign: left } } Text t44 { text: footprint + " m²" layout { position: (1340) - 140, 214 size: 140, 16.0 } style { fontSize: 10 fontWeight: 600 textColor: "#141414" textAlign: right } } Path p45 : hair { points: [[1000, 233], [1340, 233]] } Text t46 { text: "Floor area" layout { position: 1000, 238 size: 190, 16.0 } style { fontSize: 10 fontWeight: 400 textColor: "#141414" textAlign: left } } Text t47 { text: round(floorArea / 1000) + " 000 m²" layout { position: (1340) - 140, 238 size: 140, 16.0 } style { fontSize: 10 fontWeight: 600 textColor: "#141414" textAlign: right } } Path p48 : hair { points: [[1000, 257], [1340, 257]] } Text t49 { text: "Floor area ratio" layout { position: 1000, 262 size: 190, 16.0 } style { fontSize: 10 fontWeight: 400 textColor: "#141414" textAlign: left } } Text t50 { text: round(floorArea / siteArea * 100) / 100 + "" layout { position: (1340) - 140, 262 size: 140, 16.0 } style { fontSize: 10 fontWeight: 600 textColor: "#141414" textAlign: right } } Path p51 : hair { points: [[1000, 281], [1340, 281]] } Text t52 { text: "Height" layout { position: 1000, 286 size: 190, 16.0 } style { fontSize: 10 fontWeight: 400 textColor: "#141414" textAlign: left } } Text t53 { text: round(storeys * storeyHeight * 10) / 10 + " m" layout { position: (1340) - 140, 286 size: 140, 16.0 } style { fontSize: 10 fontWeight: 600 textColor: "#141414" textAlign: right } } Path p54 : hair { points: [[1000, 305], [1340, 305]] } Text t55 { text: "One block" layout { position: 1000, 332 size: 240, 19.2 } style { fontSize: 12 fontWeight: 700 textColor: "#141414" textAlign: left letterSpacing: 0.5 } } Text t56 { text: units + " houses on a side, around a shared yard of " + court + " m" layout { position: 1000, 350 size: 340, 16.0 } style { fontSize: 10 fontWeight: 400 textColor: "#55554f" textAlign: left } } Path p57 { points: [[1000, 376], [1000 + 300, 376], [1000 + 300, 376 + 300], [1000, 376 + 300]] closed: true style { stroke: "#141414" strokeWidth: 1 fill: "#26262a" cornerRadius: 10 } } Path p58 { points: [[1000 + depth * e, 376 + depth * e], [1000 + depth * e + court * e, 376 + depth * e], [1000 + depth * e + court * e, 376 + depth * e + court * e], [1000 + depth * e, 376 + depth * e + court * e]] closed: true style { stroke: "#141414" strokeWidth: 0.8 fill: "#fbfaf5" cornerRadius: 18 } } Path p59 { points: [[1000 + 112, 376 + 112], [1000 + 112 + 76, 376 + 112], [1000 + 112 + 76, 376 + 112 + 76], [1000 + 112, 376 + 112 + 76]] closed: true style { stroke: "#8fa578" strokeWidth: 0.8 fill: "#d7e2bf" cornerRadius: 14 } } Repeat r60 { count: units - 1 k: col + 1 where: k * block / units > depth && k * block / units < block - depth Path party_north : white_line { points: [[1000 + k * 300 / units, 376 + 2], [1000 + k * 300 / units, 376 + depth * e - 2]] } } Repeat r61 { count: units - 1 k: col + 1 where: k * block / units > depth && k * block / units < block - depth Path party_south : white_line { points: [[1000 + k * 300 / units, 376 + 300 - depth * e + 2], [1000 + k * 300 / units, 376 + 298]] } } Repeat r62 { count: units - 1 k: col + 1 where: k * block / units > depth && k * block / units < block - depth Path party_west : white_line { points: [[1000 + 2, 376 + k * 300 / units], [1000 + depth * e - 2, 376 + k * 300 / units]] } } Repeat r63 { count: units - 1 k: col + 1 where: k * block / units > depth && k * block / units < block - depth Path party_east : white_line { points: [[1000 + 300 - depth * e + 2, 376 + k * 300 / units], [1000 + 298, 376 + k * 300 / units]] } } Repeat r64 { count: 4 Use yard_tree : tree { at: 1000 + 150 + when(col < 2, -1, 1) * 60, 376 + 150 + when(floor(col / 2) * 2 == col, -1, 1) * 60 crown: 9 } } Dimension d65 { text: "" + block start: 1000, 376 + 300 end: 1000 + 300, 376 + 300 offset: -14 style { stroke: "#55554f" strokeWidth: 0.6 textColor: "#141414" fontSize: 9 } } Dimension d66 { text: "" + depth start: 1000 + 300, 376 end: 1000 + 300, 376 + depth * e offset: 14 style { stroke: "#55554f" strokeWidth: 0.6 textColor: "#141414" fontSize: 9 } } Text t67 { text: "The street" layout { position: 1000, 750 size: 240, 19.2 } style { fontSize: 12 fontWeight: 700 textColor: "#141414" textAlign: left letterSpacing: 0.5 } } Path p68 { points: [[1000, 960], [1340, 960]] style { stroke: "#141414" strokeWidth: 2 fill: none } } Shape s69 { layout { position: 1000 + (340 - (2 * depth + street) * sectionScale) / 2, 960 - storeys * storeyHeight * sectionScale size: depth * sectionScale, storeys * storeyHeight * sectionScale } style { shape: rectangle fill: "#ffffff" stroke: "#141414" strokeWidth: 1 } } Repeat r70 { count: storeys + 1 Shape floor_left : slab { layout { position: 1000 + (340 - (2 * depth + street) * sectionScale) / 2 - 1, 960 - col * storeyHeight * sectionScale - 1.5 size: depth * sectionScale + 2, 3 } } } Shape s71 { layout { position: 1000 + (340 - (2 * depth + street) * sectionScale) / 2 + (depth + street) * sectionScale, 960 - storeys * storeyHeight * sectionScale size: depth * sectionScale, storeys * storeyHeight * sectionScale } style { shape: rectangle fill: "#ffffff" stroke: "#141414" strokeWidth: 1 } } Repeat r72 { count: storeys + 1 Shape floor_right : slab { layout { position: 1000 + (340 - (2 * depth + street) * sectionScale) / 2 + (depth + street) * sectionScale - 1, 960 - col * storeyHeight * sectionScale - 1.5 size: depth * sectionScale + 2, 3 } } } Path p73 : thin { points: [[1000 + (340 - (2 * depth + street) * sectionScale) / 2 + depth * sectionScale + street * sectionScale * 0.25, 960], [1000 + (340 - (2 * depth + street) * sectionScale) / 2 + depth * sectionScale + street * sectionScale * 0.25, 960 - 22]] } Shape s74 { layout { position: 1000 + (340 - (2 * depth + street) * sectionScale) / 2 + depth * sectionScale + street * sectionScale * 0.25 - 12, 960 - 44 size: 24, 24 } style { shape: circle fill: "#d7e2bf" stroke: "#8fa578" strokeWidth: 0.7 } } Path p75 : thin { points: [[1000 + (340 - (2 * depth + street) * sectionScale) / 2 + depth * sectionScale + street * sectionScale * 0.75, 960], [1000 + (340 - (2 * depth + street) * sectionScale) / 2 + depth * sectionScale + street * sectionScale * 0.75, 960 - 22]] } Shape s76 { layout { position: 1000 + (340 - (2 * depth + street) * sectionScale) / 2 + depth * sectionScale + street * sectionScale * 0.75 - 12, 960 - 44 size: 24, 24 } style { shape: circle fill: "#d7e2bf" stroke: "#8fa578" strokeWidth: 0.7 } } Shape s77 { layout { position: 1000 + (340 - (2 * depth + street) * sectionScale) / 2 + depth * sectionScale + street * sectionScale * 0.5 - 12, 960 - 13 size: 24, 11 } style { shape: rounded_rectangle fill: "#ffffff" stroke: "#141414" strokeWidth: 0.7 cornerRadius: 4 } } Dimension d78 { text: "" + street start: 1000 + (340 - (2 * depth + street) * sectionScale) / 2 + depth * sectionScale, 960 end: 1000 + (340 - (2 * depth + street) * sectionScale) / 2 + depth * sectionScale + street * sectionScale, 960 offset: -16 style { stroke: "#55554f" strokeWidth: 0.6 textColor: "#141414" fontSize: 9 } } Text t79 { text: "Section through the hall" layout { position: x0, 1240 - max(storeys * storeyHeight * s, 7 * hallRise, 9 * s + 2.5 * s) - 38 size: 260, 17.6 } style { fontSize: 11 fontWeight: 700 textColor: "#141414" textAlign: left letterSpacing: 0.3 } } Repeat r80 { columns: cols rows: 2 wx: x0 + streetPx + col * pitch + row * (blockPx - depthPx) where: col != hallCol Path wing { points: [[wx, 1240], [wx, 1240 - storeys * storeyHeight * s], [wx + depthPx, 1240 - storeys * storeyHeight * s], [wx + depthPx, 1240]] closed: true style { stroke: "#141414" strokeWidth: 1 fill: "#ffffff" } } } Repeat r81 { columns: cols * 2 rows: storeys i: floor(col / 2) side: col - i * 2 wx: x0 + streetPx + i * pitch + side * (blockPx - depthPx) where: i != hallCol Shape wing_floor : slab { layout { position: wx, 1240 - (row + 1) * storeyHeight * s - 0.8 size: depthPx, 1.6 } } } Repeat r82 { count: 7 inset: blockPx * 0.14 + col * blockPx * 0.035 Shape hall_step { layout { position: x0 + streetPx + hallCol * pitch + inset, 1240 - (col + 1) * hallRise size: blockPx - 2 * inset, hallRise } style { shape: rectangle fill: "#ffffff" stroke: "#141414" strokeWidth: 1 } } } Repeat r83 { count: cols + 1 Path street_stem : thin { points: [[x0 + col * pitch + streetPx / 2, 1240], [x0 + col * pitch + streetPx / 2, 1240 - 5 * s]] } } Repeat r84 { count: cols + 1 Use street_crown : tree { at: x0 + col * pitch + streetPx / 2, 1240 - 6 * s crown: 2.5 * s } } Repeat r85 { count: cols where: col != hallCol Path yard_stem : thin { points: [[x0 + streetPx + col * pitch + blockPx / 2, 1240], [x0 + streetPx + col * pitch + blockPx / 2, 1240 - 6 * s]] } } Repeat r86 { count: cols where: col != hallCol Use yard_crown : tree { at: x0 + streetPx + col * pitch + blockPx / 2, 1240 - 8 * s crown: 3.5 * s } } Path p87 { points: [[x0, 1240], [x0 + totalX * s, 1240]] style { stroke: "#141414" strokeWidth: 2.4 fill: none } } Text t88 { text: "Legend" layout { position: 1000, 1012 size: 240, 19.2 } style { fontSize: 12 fontWeight: 700 textColor: "#141414" textAlign: left letterSpacing: 0.5 } } Shape s89 { layout { position: 1000, 1038 size: 26, 16 } style { shape: rectangle fill: "#26262a" stroke: "#141414" strokeWidth: 0.7 } } Text t90 { text: "Housing" layout { position: 1038, 1037 size: 260, 16.0 } style { fontSize: 10 fontWeight: 400 textColor: "#141414" textAlign: left } } Shape s91 { layout { position: 1000, 1064 size: 26, 16 } style { shape: rectangle fill: "#fbfaf5" stroke: "#141414" strokeWidth: 0.7 } } Text t92 { text: "Yard and gate" layout { position: 1038, 1063 size: 260, 16.0 } style { fontSize: 10 fontWeight: 400 textColor: "#141414" textAlign: left } } Shape s93 { layout { position: 1000, 1090 size: 26, 16 } style { shape: rectangle fill: "#d7e2bf" stroke: "#8fa578" strokeWidth: 0.7 } } Text t94 { text: "Yard garden and trees" layout { position: 1038, 1089 size: 260, 16.0 } style { fontSize: 10 fontWeight: 400 textColor: "#141414" textAlign: left } } Shape s95 { layout { position: 1000, 1116 size: 26, 16 } style { shape: rectangle fill: "#dcdbd3" stroke: "#b5b3a8" strokeWidth: 0.7 } } Text t96 { text: "Street" layout { position: 1038, 1115 size: 260, 16.0 } style { fontSize: 10 fontWeight: 400 textColor: "#141414" textAlign: left } } Shape s97 { layout { position: 1000, 1142 size: 26, 16 } style { shape: rectangle fill: "#ece9dd" stroke: "#b5b3a8" strokeWidth: 0.7 } } Text t98 { text: "Forecourt of the hall" layout { position: 1038, 1141 size: 260, 16.0 } style { fontSize: 10 fontWeight: 400 textColor: "#141414" textAlign: left } } Shape s99 { layout { position: x0, 1282 size: 52, 52 } style { shape: circle fill: none stroke: "#141414" strokeWidth: 0.9 } } Path p100 { points: [[x0 + 26, 1272], [x0 + 36, 1318], [x0 + 26, 1310], [x0 + 16, 1318]] closed: true style { stroke: "#141414" strokeWidth: 0.8 fill: "#141414" } } Repeat r101 { count: 5 Shape bar { layout { position: 160 + col * 20 * s, 1304 size: 20 * s, 6 } style { shape: rectangle fill: when(floor(col / 2) * 2 == col, "#141414", "#ffffff") stroke: "#141414" strokeWidth: 0.6 } } } Text t102 { text: "100 m" layout { position: 160 + 100 * s + 8, 1298 size: 60, 15.2 } style { fontSize: 9.5 fontWeight: 400 textColor: "#55554f" textAlign: left } } Path p103 { points: [[1000, 1250], [1000 + 340, 1250], [1000 + 340, 1250 + 70], [1000, 1250 + 70]] closed: true style { stroke: "#141414" strokeWidth: 1 fill: "#ffffff" } } Text t104 { text: "CITY BLOCK" layout { position: 1014, 1258 size: 220, 22.4 } style { fontSize: 14 fontWeight: 700 textColor: "#141414" textAlign: left letterSpacing: 1 } } Text t105 { text: "District plan and sections" layout { position: 1014, 1286 size: 220, 16.0 } style { fontSize: 10 fontWeight: 400 textColor: "#55554f" textAlign: left } } Text t106 { text: "Sheet U-101" layout { position: (1326) - 90, 1286 size: 90, 16.0 } style { fontSize: 10 fontWeight: 500 textColor: "#141414" textAlign: right } } Shape controlBand { layout { position: 0, 1360 size: 1400, 120 } style { shape: rectangle fill: "#ecebe3" stroke: "#dcdad0" } } Text colsLabel { text: <- "Blocks across " + district.cols layout { position: 60, 1386 size: 190, 20 } style { fontSize: 13 fontWeight: 600 textColor: "#141414" textAlign: left } } Component colsControl { type: slider value: <-> district.cols min: 2 max: 4 layout { position: 60, 1414 size: 180, 32 } style { accent: "#141414" track: "#d2d0c6" step: 1 } } Text rowsLabel { text: <- "Blocks down " + district.rows layout { position: 274, 1386 size: 190, 20 } style { fontSize: 13 fontWeight: 600 textColor: "#141414" textAlign: left } } Component rowsControl { type: slider value: <-> district.rows min: 2 max: 4 layout { position: 274, 1414 size: 180, 32 } style { accent: "#141414" track: "#d2d0c6" step: 1 } } Text blockLabel { text: <- "Block size " + district.block + " m" layout { position: 488, 1386 size: 190, 20 } style { fontSize: 13 fontWeight: 600 textColor: "#141414" textAlign: left } } Component blockControl { type: slider value: <-> district.block min: 50 max: 90 layout { position: 488, 1414 size: 180, 32 } style { accent: "#141414" track: "#d2d0c6" step: 2 } } Text streetLabel { text: <- "Street width " + district.street + " m" layout { position: 702, 1386 size: 190, 20 } style { fontSize: 13 fontWeight: 600 textColor: "#141414" textAlign: left } } Component streetControl { type: slider value: <-> district.street min: 10 max: 24 layout { position: 702, 1414 size: 180, 32 } style { accent: "#141414" track: "#d2d0c6" step: 2 } } Text depthLabel { text: <- "Building depth " + district.depth + " m" layout { position: 916, 1386 size: 190, 20 } style { fontSize: 13 fontWeight: 600 textColor: "#141414" textAlign: left } } Component depthControl { type: slider value: <-> district.depth min: 10 max: 18 layout { position: 916, 1414 size: 180, 32 } style { accent: "#141414" track: "#d2d0c6" step: 1 } } Text storeysLabel { text: <- "Storeys " + district.storeys layout { position: 1130, 1386 size: 190, 20 } style { fontSize: 13 fontWeight: 600 textColor: "#141414" textAlign: left } } Component storeysControl { type: slider value: <-> district.storeys min: 3 max: 8 layout { position: 1130, 1414 size: 180, 32 } style { accent: "#141414" track: "#d2d0c6" step: 1 } } } }