BrushCue Example: Kaleidoscope Animation¶
You can use this tool online at https://www.brushcue.com/tools/kaleidoscope-animation
In [ ]:
!pip install brushcue
In [1]:
import brushcue
import io
input_image_1 = brushcue.composition_monet_women_with_parasol() # insert your own image here
duration_2 = brushcue.float_passthrough(3.0)
time_3 = brushcue.float_passthrough(0.0)
float_divide_4 = brushcue.float_divide(time_3, duration_2)
pi_5 = brushcue.pi()
float_multiply_6 = brushcue.float_multiply(float_divide_4, pi_5)
kaleidoscope_7 = brushcue.composition_kaleidoscope(input_image_1, 4.0, float_multiply_6, 0.089999996, 0.0)
sequence_graph_8 = brushcue.sequence_graph(duration_2, time_3, kaleidoscope_7)
ctx = brushcue.Context()
result = sequence_graph_8.execute(ctx)
result = result.as_sequence()
# You can render the result to an video file