Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-06-18 14:10:17 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-06-18 14:10:17 -0700
commit61923676717d92c4b99984c27747d6cf5ae77285 (patch)
tree42b23f2aa25bf96e807de2bd07e3b45846d11c10 /public
parente627dfc3a9254c4aed5f26bd16aa4647035b5c8a (diff)
WIP: better rectangle algo
Diffstat (limited to 'public')
-rw-r--r--public/radial.html71
1 files changed, 57 insertions, 14 deletions
diff --git a/public/radial.html b/public/radial.html
index 784040e..5398186 100644
--- a/public/radial.html
+++ b/public/radial.html
@@ -5,7 +5,7 @@
<style>
polygon {
fill: inherit;
- stroke: #999;
+ stroke: inherit;
stroke-width: 0.25px;
}
@@ -20,7 +20,7 @@
user-select: none;
font-family: sans-serif;
fill: black;
- display: none;
+ /* display: none; */
}
.elevation-basement {
@@ -41,7 +41,8 @@
.elevation-2 {
fill: rgb(240, 216, 172);
- display: none;
+ opacity: 0.3;
+ /* display: none; */
}
.elevation-roof {
@@ -113,24 +114,66 @@
.building.view-elevation-basement .doors {
display: none;
}
+
+ use[href="#hex"] {
+ stroke: #666;
+ /* fill: wheat; */
+ fill: url(#asterisk);
+ }
+
+ .building [class*="elevation"] use {
+ fill-opacity: 0.33;
+ stroke: black;
+ }
+
+ .building {
+ display: none;
+ }
+
</style>
</head>
<body>
- <svg viewBox="-300 -200 600 400" xmlns="http://www.w3.org/2000/svg">
+ <svg viewBox="-200 -150 400 300" xmlns="http://www.w3.org/2000/svg">
+ <!-- <svg viewBox="-30 -20 60 40" xmlns="http://www.w3.org/2000/svg"> -->
<defs>
<polygon id="hex" points="0,10 8.66,5 8.66,-5 0,-10 -8.66,-5 -8.66,5" />
+ <line id="ast-line" stroke="#000000" stroke-width="0.3" x1="-1.2" y1="0" x2="1.2" y2="0" />
+ <pattern id="asterisk" viewBox="-15 -15 30 30" width="30" height="30" patternUnits="userSpaceOnUse">
+ <rect x="-15" y="-15" width="30" height="30" fill="wheat" />
+ <use y="-15" x="-15" href="#ast-line" />
+ <use y="-15" x="15" href="#ast-line" />
+ <use y="15" x="-15" href="#ast-line" />
+ <use y="15" x="15" href="#ast-line" />
+
+ <use y="-15" x="-15" transform="rotate(60, -15, -15)" href="#ast-line" />
+ <use y="15" x="15" transform="rotate(60, 15, 15)" href="#ast-line" />
+ <use y="-15" x="15" transform="rotate(-60, 15, -15)" href="#ast-line" />
+ <use y="15" x="-15" transform="rotate(-60, -15, 15)" href="#ast-line" />
+ </pattern>
</defs>
- <g id="building2" class="building view-elevation-1" transform="translate(-181.86, 105)">
- <!-- <g id="building2" class=".building"> -->
- <path class="floor"
- d="m 38.786985,67.5 17.32,-30 v -45 l -17.32,-30 v -30 h -77.94 v 30 l -17.32,30 v 45 l 17.32,30 z" />
- <path class="outer-wall"
- d="m -21.833015,67.5 v -60 m 17.3200004,-75 v 30 M 17.136985,15 4.146985,7.5 m 51.96,30 -12.99,-7.5 m -38.97,-67.5 v 45 h -60.62 m 17.32,-45 h 77.94 m -69.28,105 h 69.28 l 17.32,-30 v -45 l -17.32,-30 v -30 h -77.94 v 30 l -17.32,30 v 45 l 17.32,30 z" />
- <path class="inner-wall"
- d="m -21.833015,67.5 v -60 m 17.3200004,-75 v 30 M 17.136985,15 4.146985,7.5 m 51.96,30 -12.99,-7.5 m -38.97,-67.5 v 45 h -60.62 m 17.32,-45 h 77.94 m -69.28,105 h 69.28 l 17.32,-30 v -45 l -17.32,-30 v -30 h -77.94 v 30 l -17.32,30 v 45 l 17.32,30 z" />
- <path class="doors"
- d="m 3.698745,-67.5 h 9.55648 m 7.76351,30 h 9.55648 M -4.9612546,67.5 H 4.595225 m -18.71725,-60 h 9.5564804 m -35.0357204,0 h 9.55648 m 33.74353,-75 h 9.55648 m -35.53648,30 h 9.55648 m 7.7635204,105 H 4.595225 m -18.71725,-60 h 9.5564804 m -35.0357204,0 h 9.55648" />
+
+ <g id="building1" class="building view-elevation-1">
+ <g transform="translate(-60.62, 105)">
+ <path class="floor" d="M -38.969999,-67.499999 H 38.969999 V 67.499999 h -77.939998 z" />
+ <path class="outer-wall"
+ d="m 38.969998,-7.500001 h -12.99 v 12.5 m -21.6499995,32.5 H 38.969998 m -34.6399995,30 v -60 h -8.66 v -45 m -8.6600005,105 v -45 h -25.979997 m 0,-89.999998 H 38.969999 V 67.499999 h -77.939998 z" />
+ <path class="inner-wall"
+ d="m 38.969998,-7.500001 h -12.99 v 12.5 m -21.6499995,32.5 H 38.969998 m -34.6399995,30 v -60 h -8.66 v -45 m -8.6600005,105 v -45 h -25.979997 m 0,-89.999998 H 38.969999 V 67.499999 h -77.939998 z" />
+ </g>
+ </g>
+
+ <g id="building2" class="building view-elevation-1">
+ <g transform="translate(-181.86, 105)">
+ <path class="floor"
+ d="m 38.786985,67.5 17.32,-30 v -45 l -17.32,-30 v -30 h -77.94 v 30 l -17.32,30 v 45 l 17.32,30 z" />
+ <path class="outer-wall"
+ d="m -21.833015,67.5 v -60 m 17.3200004,-75 v 30 M 17.136985,15 4.146985,7.5 m 51.96,30 -12.99,-7.5 m -38.97,-67.5 v 45 h -60.62 m 17.32,-45 h 77.94 m -69.28,105 h 69.28 l 17.32,-30 v -45 l -17.32,-30 v -30 h -77.94 v 30 l -17.32,30 v 45 l 17.32,30 z" />
+ <path class="inner-wall"
+ d="m -21.833015,67.5 v -60 m 17.3200004,-75 v 30 M 17.136985,15 4.146985,7.5 m 51.96,30 -12.99,-7.5 m -38.97,-67.5 v 45 h -60.62 m 17.32,-45 h 77.94 m -69.28,105 h 69.28 l 17.32,-30 v -45 l -17.32,-30 v -30 h -77.94 v 30 l -17.32,30 v 45 l 17.32,30 z" />
+ <path class="doors"
+ d="m 3.698745,-67.5 h 9.55648 m 7.76351,30 h 9.55648 M -4.9612546,67.5 H 4.595225 m -18.71725,-60 h 9.5564804 m -35.0357204,0 h 9.55648 m 33.74353,-75 h 9.55648 m -35.53648,30 h 9.55648 m 7.7635204,105 H 4.595225 m -18.71725,-60 h 9.5564804 m -35.0357204,0 h 9.55648" />
+ </g>
</g>
</svg>
<script src="radial.js"></script>