JavaScript experiments | by B.J. | Home | |||||||||
Optimized for PC with mouse (Windows 10 + Chrome or Firefox). May not work on mobile devices (iOS, Adroid + Safari, etc.). | |||||||||||
OBS: Computationally demanding animations may benefit from 'hardware acceleration' (Chrome advanced settings). Pictures/photos are rendered best without! | |||||||||||
Primes | Explores the swiftness of JavaScript finding prime numbers, using Eratosthenes' sieve. | ||||||||||
Viewer | Photo display using JavaScript. | ||||||||||
Inversion | Pixel manipulation. | ||||||||||
rgb | Pixel manipulation. | ||||||||||
DLA | Difussion-limited aggregation. OBS: This program is CPU-intensive! | ||||||||||
Elastic collision | Billiard ball physics. | ||||||||||
Time's arrow | Irreversible time from reversible kinetics, dS / dt > 0 ? | ||||||||||
Guess a bird | Guess a bird from its voice! | p.s. also in Danish. |
|||||||||
Cellular automaton | Conway's 'Game of Life'. | ||||||||||
Rotating sphere | 3D. | ||||||||||
Dragging and throwing | Kinematics. | ||||||||||
Dynamic web | Point objects crossing the screen are connected as long as their distance is smaller than a certain value. | ||||||||||
Smooth randomness | Perlin noise. Pixel manipulation. | ||||||||||
Perlin noise. Hexagonal grid distortion. | |||||||||||
The Monty Hall problem | Probabilities. | ||||||||||
Web from points on sphere | 3D. | ||||||||||
Rotated spheres | 3D. | ||||||||||
Great circles (satellites) | 3D. | ||||||||||
Pentagon tilings | Mosaics from regular pentagons. | ||||||||||
The Mandelbrot set | Fractal beauty. | ||||||||||
Euclid's algorithm | Finding the largest common divisor of two natural numbers. | ||||||||||
Europa | '20 spørgsmål til professoren' om de europæiske lande. | In Danish! | |||||||||
The Periodic Table | '20 questions' on The Periodic Table of the Chemical Elements. | ||||||||||
Elliptic objects 1 | Elliptic objects at constant speed ignoring each other. | ||||||||||
Elliptic objects 2 | Elliptic objects at constant speed avoiding collision with each other. | ||||||||||
Bézier curve | Cubic spline. | ||||||||||
Ornamental | Quadratic splines in action. | ||||||||||
Loop | Quadratic splines in action. | ||||||||||
Interactive elastic kinetics 1 | Elastic chain, one node fixed. | ||||||||||
Interactive elastic kinetics 2 | Free elastic chain. Magnetic red spot. | ||||||||||
Interactive elastic kinetics 3 | Nervous chains. | ||||||||||
Interactive elastic kinetics 4 | Web, no gravity. | ||||||||||
Pendulums | Pendulum objects of various length and amplitude. | ||||||||||
Tower of Hanoi | Recursion. | ||||||||||
|
|
|
|
|