Random Circles with No Overlap in Processing

Simon translated Daniel Shiffman’s p5.js tutorial on random circles with no overlap into Processing (Java). The project is about a “circle packing”-like algorithm. Circles are placed randomly in the canvas, but only … Continue reading Random Circles with No Overlap in Processing

Plinko game translated into Processing (Java) and Box2D

Simon translated Daniel Shiffman’s Plinko game coding challenge from JavaScript and Matter.JS into Processing (Java) and Box2D: Simon adds that he didn’t actually do part 4 of the coding challenge, … Continue reading Plinko game translated into Processing (Java) and Box2D

Simple Physics. Translating from Lua (the language in the Codea app) into Java

Simon came up with an idea to translate a physics visualization from the Codea app (using a language called Lua) into Processing (Java) by applying Box2D. The first two videos … Continue reading Simple Physics. Translating from Lua (the language in the Codea app) into Java

Simon translated Attraction and Repulsion Forces Coding Challenge into Java

Simon translated part of the Attraction and Repulsion Forces Coding Challenge from JavaScript into Processing (Java). In the first video below he explains the formulas for attraction and repulsion forces: … Continue reading Simon translated Attraction and Repulsion Forces Coding Challenge into Java

Nearest Neighbour Coding Challenge. Euclidean Distance.

The notes above are from a couple days ago when Simon was trying to explain to me, where the formula for calculating similarity s = 1/1+c comes from. He linked it … Continue reading Nearest Neighbour Coding Challenge. Euclidean Distance.

Polar Distribution to create clusters

Simon has written a code about using Polar Distribution to create clusters in p5.js (JavaScript). The code is available online at: https://alpha.editor.p5js.org/simontiger/sketches/Sy1CX71xZ The little particles are attracted to one another but don’t … Continue reading Polar Distribution to create clusters

Polar Roses in JavaScript

Simon created an engine that uses trigonometrical (polar coordinates) formulas to produce beautiful roses. He reproduced the code originally created by Daniel Shiffman from memory and searched for the formulas … Continue reading Polar Roses in JavaScript