BrushCue Example: Kaleidoscope Animation¶

Open In Colab

You can use this tool online at https://www.brushcue.com/tools/kaleidoscope-animation

In [ ]:
!pip install brushcue
In [1]:
import brushcue as bc

variable_0 = bc.Float.passthrough(3)
variable_1 = bc.Float.passthrough(0)
graph = bc.Sequence.graph(
    variable_0,
    variable_1,
    bc.Composition.monet_women_with_parasol().kaleidoscope(
        4, ((variable_1 / variable_0) * bc.Float.pi()), 0.089999996, 0
    ),
)

ctx = bc.Context()
sequence = graph.execute(ctx)
# Render `sequence` to a video file as needed.