Infinite Pendulum
An endless Newton's cradle that lives in your VS Code sidebar. Chrome balls, a metal frame and a wooden base, swinging forever while you code.
It's purely decorative: it doesn't read your files, doesn't connect to the internet and doesn't change anything in your editor.
How to use it
- After installing, it shows up as Infinite Pendulum at the bottom of the Explorer panel. You can drag it anywhere else in the sidebar.
- Click the animation to pause or resume it.
- Panel buttons:
- Restart: restarts the swing.
- Open in Editor: opens it in a large editor tab.
- You can also open the Command Palette (
Ctrl+Shift+P / Cmd+Shift+P) and search for "Infinite Pendulum".
Settings
Open Settings and search for "Infinite Pendulum".
| Setting |
Default |
Description |
infinitePendulum.balls |
5 |
Number of balls (3 to 7) |
infinitePendulum.lifted |
1 |
How many balls are lifted on each side |
infinitePendulum.speed |
1 |
Animation speed (0.1 to 4) |
infinitePendulum.sound |
false |
Click sound on every collision. Due to browser rules, it turns on after you click the animation once |
Try setting lifted to 2 or 3 to see the classic effect: the same number of balls that swing in, swing out on the other side.
The extension's commands and settings are available in English and Spanish, following your VS Code display language.
En español
Una cuna de Newton animada que vive en la barra lateral de VS Code y nunca se detiene. Es puramente decorativa: no lee tus archivos ni se conecta a internet.
- Aparece como Infinite Pendulum al fondo del panel Explorador.
- Haz click sobre la animación para pausarla o continuarla.
- Los botones del panel permiten Reiniciar o Abrir en el editor.
- En Settings, busca "Infinite Pendulum" para cambiar el número de bolas, cuántas se levantan, la velocidad y el sonido.
Si tu VS Code está en español, los comandos y ajustes se muestran en español automáticamente.
License
MIT