Fun

Small fun scripts I like playing with.

Websites

Arithmetic Sequence Calculator

Calculates the formulas for an arithmetic sequence given 2 terms. In other words, it calculates a line through 2 points.

These formulas are actually inverse lerp and lerp. See my article here for more info!

Random Audio Splicer

Randomly slices up audio into segments and plays the result. Requested by Zoe (not sponsored)

Boolean Comparisons

A table of boolean comparisons made for the Boolean Math node in Blender.

I guess I didn’t trust myself to get it right, since it’s generated in JavaScript.

Caleb Fuzz

The simplest form of audio distortion, designed by Caleb for a guitar pedal. It’s just Math.sign(sample).

Text Corruption

Corrupts TomJedi9’s holy gospel with horrible swear words and profanity. Not safe for work!

CSS Programming

Did you know you can run simple code in CSS? Math totally works, just use counter-reset!

Cursor Draw

Draws a trail as you move the cursor around the page.

Cursor Particles

Spawns star particles as you move the cursor around the page.

Cursor Physics

Spawns bouncing balls as you move the cursor around the page.

Cursor Trail

Spawns a trail of stars as you move the cursor around the page.

Earrape

The most beautiful music in the world, make sure to turn up your sound!

Fake Login

Faithful recreation of Google Chrome’s login popup, great for doing ethical stuff with people’s passwords!

Frog Drawer

The latest and greatest in frog drawing technology, made for Joseph Tonien’s webdev class.

Hair Blower

Ultra realistic hair blowing simulation definitely not made in 5 minutes. 10/10 better than Vellum in Houdini

Image to UML

Converts an image to a UMLet diagram. It recreates the image using coloured rectangle nodes for each pixel.

K-Nearest Neighbors

Inspired by my machine learning class at university. Draws the result of running k-nearest neighbors on a few points, which looks like voronoi.

Every pixel is drawn using an individual rectangle, so it’s horribly slow. Use WebGL for good performance.

Lerp Smoother

My old horribly broken method of smoothing with lerp. For much better methods, see my article here.

Porter Trail

Trails a point travelling in a random direction, similar to Porter Robinson’s music videos.

This is a form of simple brownian motion.

PowerPoint

End of slide slow, click to exit. Great for trolling teachers.

Pulse Width Modulation

Calculates interpolated windows of pulse width modulation, correcting the phase offset between windows.

This was originally designed for Cinema Sense, an app for blind people to experience films through other senses (like vibration).

Queue Simulator

Dumb brute force discrete simulation of a queue of customers, made for a problem solving course at university.

Queue Visualiser

Smarter continuous simulation of a queue of customers, made for a problem solving course at university.

Raw Audio Player

Plays an audio signal stored as a string of numbers.

Resampling

Draws and plays many signal interpolation methods. I made this for debugging while making an audio plugin.

Sinc is the highest quality option for audio, but also the most expensive.

Resize Calculator

Calculates how much an image needs to be shrunk to fit under a certain number of megapixels.

I made this since Google Docs has an image size limit of 25 megapixels.

Brute Force Sudoku Solver

Solves easy and medium Sudoku boards with brute force elimination based on the Sudoku rules.

Made to cheat in daily Sudoku challenges, inspired by Ellen.

UML to Java Converter

Converts UML syntax to Java code, filling in constructors, getters and setters where possible using fuzzy matching.

Supports basic syntax like +, -, #, getVar(), changeVar(), setVar(), and variables declared as type, name: type or type name

Supports some advanced syntax like <<read only>>, {read only}, /AbstractClass/, <<abstract>>, <<interface>>, __staticMethod()__

Also has basic support for <<enumerator>> and <<enum>>: