Double pendulums control loops & conditionals via chaotic motion
COMMANDS:
EXAMPLE PROGRAM:
TRY THIS:
1. Click VAR x=5 (🟠 orange pendulum)
2. Click SET x+1 (🔵 cyan pendulum)
3. Click LOOP 3x (🟣 3 magenta pendulums)
4. Click IF SWING (🟢 checks last pendulum angle)
5. Click PRINT x (📤 outputs value)
6. Hit ▶️ RUN to execute!
WHAT HAPPENS:
Each command spawns a chaotic pendulum! Drag blocks to reorder, then RUN executes top-to-bottom. IF SWING only runs if last pendulum angle > 90°!