Sine from a circle

Sine from a circle preview
remixableManimCE2Dsignalsloop

manim/sine_from_circle.py

"""Sine from a circle: a turning radius whose height traces one cycle of sin.

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 -r 1600,1600 manim/sine_from_circle.py SineFromCircle
    ASSET_MODE=motion $P -m manim -qh   -r 1080,1080 manim/sine_from_circle.py SineFromCircleLoop
"""

import numpy as np
from manim import (
    DOWN,
    LEFT,
    PI,
    TAU,
    UP,
    Circle,

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