Skip to content

MysteryPancake/Fun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fun

Small fun scripts I like playing with.

Websites

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!

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

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.

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

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

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

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

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

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

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

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

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

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

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

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

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.

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

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

This is a form of simple brownian motion.

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

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).

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

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

Plays an audio signal stored as a string of numbers.

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.

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.

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.

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>>: