Line 259:
Line 259:
* [[ℝ²]]
* [[ℝ²]]
* [[Game of Life]]
* [[Game of Life]]
+
* [[Amiga]]
==Scripts I made for pages==
==Scripts I made for pages==
Line 844:
Line 845:
return EXIT_SUCCESS;
return EXIT_SUCCESS;
}
}
+
</syntaxhighlight>
+
===[[Amiga]] Boing Ball facet CSS generation===
+
<syntaxhighlight lang="python">
+
import math
+
+
w = 0.39018064403225655
+
sin = 0.3826834323650898
+
sinx = 0.39018064403225655
+
+
def height(y):
+
n = (y * 2 + 1) / 16 * math.pi
+
return math.hypot(math.sin(n) * sin, math.cos(n) * sinx)
+
width = lambda y: math.cos(y / 8 * math.pi) * w
+
+
def getCSS(y):
+
wid = width(y)
+
n = width(y + 1) / wid
+
print("clip-path: polygon(", (1 - n) / 2 * 100, "% 0, ", (1 + n) / 2 * 100, "% 0, 100% 100%, 0 100%);\nheight: ", height(y) * 50, "%;\ntransform: rotateX(", y / 16, "turn) ", "translateZ(96px) rotateX(0.03125turn) translateY(-50%);\nwidth: ", wid * 50, "%;", sep="")
</syntaxhighlight>
</syntaxhighlight>
[[Game of Life]]: <code>./radio -L "background-color:#000!important" -d "background-color:#FFF" -l "background-color:#000" -o biglife.css -s 1444 -t 16s {{Tooltip|biglife.txt|A big file full of raw cell states}}</code>
[[Game of Life]]: <code>./radio -L "background-color:#000!important" -d "background-color:#FFF" -l "background-color:#000" -o biglife.css -s 1444 -t 16s {{Tooltip|biglife.txt|A big file full of raw cell states}}</code>