Array

Array preview
remixableManimCE2Ddata structuresloop

manim/array_asset.py

"""Array: ten contiguous cells, an index pointer hopping between accesses.

Render (the driver does this for every palette; these are for eyeballing):
    P=/opt/homebrew/opt/python@3.11/bin/python3.11
    ASSET_MODE=still  $P -m manim -s -t -r 1600,1600 manim/array_asset.py Array
    ASSET_MODE=motion $P -m manim -qh   -r 1600,1600 manim/array_asset.py ArrayLoop
"""

from manim import (
    DOWN,
    Arrow,
    NumberPlane,
    Square,
    Text,
    ValueTracker,
    VGroup,

The full Manim source and the rendered video come with a plan.