This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """Generate a white-background phone figure-eight calibration GIF. | |
| This script builds the phone and the figure-eight path in 3D first, then renders | |
| them through a simple perspective camera. The phone is a thin cuboid that moves | |
| like a train on the track; the visible screen/back/side faces come from the | |
| projection and face orientation instead of 2D shape rules. | |
| """ | |
| from __future__ import annotations |