PinnedDavid BanksinBetter ProgrammingSierpiński Triangle and the Chaos GameUsing JavaScript and an SVG7 min read·Apr 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 end3 min read·Apr 4, 2023----
David BanksWebGL: Pretty Rainbow Stripes that MoveCoding a rainbow of coloured bars that move across the canvas (without using trig.)5 min read·May 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.11 min read·May 14, 2023--5--5
David BanksGLSL: Converting ifs to stepsConvert branching `if` statements into non-branching `step()` functions as per best-practices.4 min read·May 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.3 min read·May 8, 2023----
David BanksWebGL: External GLSL FilesBoilerplate code to fetch external GLSL files for WebGL.2 min read·May 2, 2023--1--1
David BanksWebGL: Useful BoilerplateA useful boilerplate function for compiling WebGL shaders into the WebGL program.2 min read·May 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.4 min read·Apr 22, 2023----
David BanksinBetter ProgrammingMandelbrot in an SVGGenerating a Mandelbrot Fractal in an SVG4 min read·Apr 24, 2023----