PinnedDavid BanksinBetter ProgrammingSierpiński Triangle and the Chaos GameUsing JavaScript and an SVGApr 5, 2023Apr 5, 2023
PinnedDavid BanksinBetter ProgrammingSerializing the Error Object in JavaScriptPoor Codey Threadson had an accident with the stringify function in a teleportation device, and now he’s at a loose endApr 4, 2023Apr 4, 2023
David BanksWebGL: Pretty Rainbow Stripes that MoveCoding a rainbow of coloured bars that move across the canvas (without using trig.)May 20, 2023May 20, 2023
David BanksWebGL: CheckerboardA few distinct ways to display a checkerboard in WebGL. Using coloured meshes, using an imported texture and using logic in GLSL.May 14, 20235May 14, 20235
David BanksGLSL: Converting ifs to stepsConvert branching `if` statements into non-branching `step()` functions as per best-practices.May 12, 2023May 12, 2023
David BanksWebGL: Canvas size confusionCanvas element’s height & width are NOT the same as the styling height and width. In fact, they are very different.May 8, 2023May 8, 2023
David BanksWebGL: External GLSL FilesBoilerplate code to fetch external GLSL files for WebGL.May 2, 20231May 2, 20231
David BanksWebGL: Useful BoilerplateA useful boilerplate function for compiling WebGL shaders into the WebGL program.May 2, 2023May 2, 2023
David BanksA New Mandelbrot Generation?Maybe a new method of generating a Mandelbrot fractal, with the highlight being inside the set instead of outside.Apr 22, 2023Apr 22, 2023
David BanksinBetter ProgrammingMandelbrot in an SVGGenerating a Mandelbrot Fractal in an SVGApr 24, 2023Apr 24, 2023