Modernize use of matrixcolor

(cherry picked from commit 985a0a79ed)
This commit is contained in:
Gouvernathor 2023-11-15 02:00:18 +01:00 committed by LoafyLemon
parent fe0193cfc2
commit 0e4fccfa26

View File

@ -3,6 +3,7 @@ image object:
transform OBJbutterfly(hue=random.randint(0, 359)): transform OBJbutterfly(hue=random.randint(0, 359)):
zoom random.uniform(0.4, 0.85) zoom random.uniform(0.4, 0.85)
matrixcolor HueMatrix(hue)
choice: choice:
pause random.randint(1, 7) pause random.randint(1, 7)
@ -22,13 +23,13 @@ transform OBJbutterfly(hue=random.randint(0, 359)):
ease_circ 1.0 rotate 15 ease_circ 1.0 rotate 15
repeat repeat
parallel: 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 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 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 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 pause .3
repeat repeat
choice: choice:
@ -49,13 +50,13 @@ transform OBJbutterfly(hue=random.randint(0, 359)):
ease_circ 1.0 rotate -15 ease_circ 1.0 rotate -15
repeat repeat
parallel: 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 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 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 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 pause .3
repeat repeat
repeat repeat