Modernize use of matrixcolor

This commit is contained in:
Gouvernathor 2023-11-15 02:00:18 +01:00
parent 9a8fdf7450
commit 0cc22f413c

View File

@ -3,6 +3,7 @@ image object:
transform OBJbutterfly(hue=random.randint(0, 359)):
zoom random.uniform(0.4, 0.85)
matrixcolor HueMatrix(hue)
choice:
pause random.randint(1, 7)
@ -22,13 +23,13 @@ transform OBJbutterfly(hue=random.randint(0, 359)):
ease_circ 1.0 rotate 15
repeat
parallel:
im.MatrixColor("images/rooms/quidditch_pitch/butterfly/0.webp", im.matrix.hue(hue)) with d3
"images/rooms/quidditch_pitch/butterfly/0.webp" with d3
pause .3
im.MatrixColor("images/rooms/quidditch_pitch/butterfly/1.webp", im.matrix.hue(hue)) with d3
"images/rooms/quidditch_pitch/butterfly/1.webp" with d3
pause .3
im.MatrixColor("images/rooms/quidditch_pitch/butterfly/2.webp", im.matrix.hue(hue)) with d3
"images/rooms/quidditch_pitch/butterfly/2.webp" with d3
pause .3
im.MatrixColor("images/rooms/quidditch_pitch/butterfly/1.webp", im.matrix.hue(hue)) with d3
"images/rooms/quidditch_pitch/butterfly/1.webp" with d3
pause .3
repeat
choice:
@ -49,13 +50,13 @@ transform OBJbutterfly(hue=random.randint(0, 359)):
ease_circ 1.0 rotate -15
repeat
parallel:
im.MatrixColor("images/rooms/quidditch_pitch/butterfly/0.webp", im.matrix.hue(hue)) with d3
"images/rooms/quidditch_pitch/butterfly/0.webp" with d3
pause .3
im.MatrixColor("images/rooms/quidditch_pitch/butterfly/1.webp", im.matrix.hue(hue)) with d3
"images/rooms/quidditch_pitch/butterfly/1.webp" with d3
pause .3
im.MatrixColor("images/rooms/quidditch_pitch/butterfly/2.webp", im.matrix.hue(hue)) with d3
"images/rooms/quidditch_pitch/butterfly/2.webp" with d3
pause .3
im.MatrixColor("images/rooms/quidditch_pitch/butterfly/1.webp", im.matrix.hue(hue)) with d3
"images/rooms/quidditch_pitch/butterfly/1.webp" with d3
pause .3
repeat
repeat