Bob's public fiddles
-
Rubik's cube
Processing.js 1.4.7, HTML, CSS, JavaScript
-
Broken println in Processing.js
println is broken when its argument is a function with a less than operator.
-
zfu04jcp
No-Library (pure JS), HTML, CSS, JavaScript
-
Benchmark floor()
Becnhmark expression vs. function for floor()
-
Random
demo normal distribution provided by Processing.js
-
Line projection and reflection
Processing.js 1.4.7, HTML, CSS, JavaScript
-
Some statistics
Benchmark ++i vs. i++
-
Singular Value Decomposition 2×2 matrix
Implements singular value decomposition of 2×2 matrices and demos how to reconstruct the Processing.js rendering matrix using a "translate, rotate, scale, rotate" sequence.
-
p*Style, strokeWeight flub
This program fails at Khan Academy. It is ported here to show proper operation.
-
KA JS memory leak
Processing.js 1.4.7, HTML, CSS, JavaScript
-
KA infinite loop work around
Desperate measure to counteract KA's infinite loop detector.
-
Elliptical arcs drawn with Bezier curves.
Processing.js 1.4.7, HTML, CSS, JavaScript
-
Circular arcs drawn with Bezier curves.
Approximating a Circular Arc With a Cubic Bezier Path
-
2D Elastic Collisions
Simulates 2D elastic collisions; implemented with the PVector library.
-
-
KA intro to drawing
Demo of porting a program from Khan Academy
-
KA getImage replacement
KA restricts images to only those in their library through their function getImage(). This demos a "suitable" replacement for that function.
-
Dr. Dave's Ellipse collision detector
Implements and demonstrates a function that determines if two ellipses intersect.
-
Naughty Shapes
Helps you write Javascript code for drawing basic Processing.js shapes.
-
Spinning plate
The spinning plate needs you to paint it.