cramicule is comming !

This commit is contained in:
tTh
2026-06-25 10:09:03 +02:00
parent de43a1810c
commit d7da858380
21 changed files with 66 additions and 48 deletions

View File

@@ -8,6 +8,7 @@
BEGIN {
count = 0
bx = by = bz = 0.0
print "// --------------------------------"
print "// GENERATED FILE, DON'T TOUCH IT !"
print "// --------------------------------"
print
@@ -21,19 +22,21 @@ BEGIN {
color = "Cyan"
if (merged) {
if (age > 150) color = "Orange"
else color = "Yellow"
if (age > 150) color = "OrangeRed"
else color = "GreenYellow"
}
else {
if (age > 150) color = "DarkGreen"
else color = "Aquamarine"
}
if (age < 18) color = "Gray40"
if (age < 9) color = "Blue"
if (age < 9) color = "LimeGreen"
# calcul barycentre
bx += $1
by += $2
bz += $3
pigment = "pigment { color " color " }"
printf "\tsphere { <%f, %f, %f>, %f \n\t\t%s }\n", \
$1, $2, $3, $4, pigment