@tth Ok, je me lance...
Un petit truc sympa avec #povray et ce qu'on peut faire avec la directive #macro :
[#]macro Bubble ()
sphere {
0, 0.10
#if ( rand(Rng1) < 0.5 ) pigment { color Cyan }
#else pigment { color Magenta }
#end
}
[#]end
[#]macro Un_Machin ()
union {
#for (Y, -8, 8, 2)
object { Bubble() translate y*Y*0.1 }
#end
}
[#]end
[#]declare Les_Machins = object
{
union {
#for (X, -7, 7)
object { Un_Machin() translate x*X*0.6 }
#end
}
}
object { Les_Machins }
https://git.tetalab.org/tTh/HexaCone/commit/2ed567a33ca481a08b20384321b94ce1c121bbf0
=> More informations about this toot | View the thread | More toots from tth@pleroma.interhacker.space
=> View tth@mastodon.tetaneutral.net profile
=> View declare tag | View end tag | View macro tag | View povray tag This content has been proxied by September (3851b).Proxy Information
text/gemini