
Explore the symmetry of mathematical shapes and watch how no frameworks, vanilla JavaScript and HTML canvas birth fractal creatures as every code change reshapes anatomy.
Center a 600-pixel canvas with flexbox, then use a 2d context to draw with beginPath, moveTo, lineTo, and stroke, building fractal-like art through translate and rotate.
Explore procedural fractal generation by looping, rotating, and randomizing branches, controlling depth with maxlevel, spread, scale, and branches, while rendering on canvas and mutating shapes for diverse results.
Experiment with procedural fractals by randomizing hue between 0 and 360, using hsl colors, adjusting lightness per recursion, and adding shadows, rotation, and varying line width for depth.
Double-click the HTML file to open the downloaded source code in your browser and view the project at the same fractal laboratory part 1 stage.
Apply a black-to-midnight blue gradient, remove border, expand to 700 pixels, and experiment with sides, spread, scale, max level, and a future fractal class refactor.
Define a fractal class with a constructor and a draw method that uses these properties and a ctx parameter for canvas rendering.
Explore fractal laboratory part 2 by opening the html in your browser to view the current project stage, then adjust max level and branches for faster or richer renders.
Resize the canvas to fullscreen, redraw the fractal on resize, and center it while managing overflow and a fixed position control button for a scalable, detailed procedural fractal.
Explore fractal visualization by switching from drawing lines to drawing circles, using drawMode to render branches or circles, and combine both for dramatic, layered compositions.
Explore the sparks draw mode to procedurally generate fractal ellipses with controlled fill, opacity, and rotation. Learn to limit draws with randomness and combine branches, circles, and sparks.
Explore creating a magical fractal held together by crackling electricity, using randomized jagged lines, glow shadows, and layered electricity passes while controlling level depth and isolation with save and restore.
Open the HTML file to load the current project stage in your browser. Increase the max level and branches in the source files to render more complex, detailed fractal renders.
const runeSymbols = ['ᚠ', 'ᚢ', 'ᚦ', 'ᚨ', 'ᚱ', 'ᚲ', '◊', '✦', '※', '⁂'];
Draw droplets of potion inside circles with arc, fill, and stroke, then combine electricity, droplets, and sparks to suspend a magical fractal.
In draw mode fur, the lecture shows drawing hair on a fractal by filling rectangles, adjusting lightness, translating, and using save and restore, with conditional rendering that excludes the middle.
Explore the draw mode: flames by rendering jagged fire shapes along fractal edges, using a defined fire color, glow, and semi-transparency with canvas shadows for a dynamic fire effect.
Open the HTML file to view the project at Fractal Laboratory part 4, and adjust the max level and branches for faster loading or more complex renders.
Create a procedurally generated butterfly body by drawing ten to thirty circles, spaced along a length, with a half-sine taper and a base visibility, then adjust antennae and scales.
Transform a six-sided fractal into a butterfly by translating, rotating, flipping, and scaling wings and body. Use random upper and lower wing angles to create procedurally generated, layered butterflies.
Open the downloaded source code by double-clicking the HTML file to view the project in your browser at the current stage, with reduced max level and branches for faster renders.
Adjust procedural parameters to render corrupted horror bats with glowing red layers, bones, and veins. Create layered canvas drawings using chaos, symmetry, and shadows to emphasize glow and texture.
Create veins and tendrils inside a glowing body by drawing with quadratic curve 2 and bezier curve 2, using two control points, red strokes, and random vertical variation.
Learn to render tendrils with manually controlled points and a sine-wave rhythm to reshape silhouettes, using dark red strokes, shadows, and glow across segments, frequency, and amplitude for procedural creatures.
In draw mode spores, the lecture shows drawing spores on branches with level and max level, random placement, save and restore, dark red fill, bright red shadows, and tendrils.
Turn magic butterflies into bioluminescent alien creatures from Pandora by shaping bodies and silhouettes, adding wing membranes, glowing accents, and protective scales; keep code clean with a source checkpoint download.
Explore a draw mode that creates four membranes for butterfly wings mapped to a sine-wave half-circle, with randomized membrane size, gradient fills, and layered wings using save and restore.
The bioluminescence draw mode introduces glowing dots along branches with random offsets, using radial gradients and shadow blur for a layered, luminous nocturnal signaling effect.
Apply the scales draw mode to place elongated diamond scales on the outermost levels every fifth step, saving and restoring state, with random sizes 15–30 and a 3-pixel line width.
In this course, we’re not holding back, we’re diving into full-on, crazy experimentation mode. Unleash your creativity with vanilla JavaScript and HTML Canvas in this hands-on coding adventure! Start with simple fractals, then twist, break, and transform them into butterflies, moths, and bats. All fully procedural and entirely yours.
You will create:
Random fractal generator: Mix colors and shapes and watch unexpected patterns emerge.
Magic butterfly generator: Add sparks, electricity, fur, runes, and other draw modes to craft unique visual effects.
Movie-inspired renders:
Corrupted bats: Deep red glow, veins, tendrils, and spores. See what happens when magic goes wrong.
Bioluminescent alien moths: Delicate wing membranes, glowing dots, protective scales. Capture the beauty of unexplored alien life.
Learn coding the fun way! Discover how HTML Canvas draws shapes, how pixels and paths work, and how vanilla JavaScript really operates behind the scenes. No frameworks, no libraries, because real wizards and witches understand how their spells are actually made. By working on projects that produce instant visual feedback, you’ll grasp coding concepts faster, see how changes in your code affect the output in real time, and gain confidence in your programming skills.
By the end, you’ll have your own procedural creature creators and fractal generators, a deep understanding of how vanilla JavaScript and Canvas work together, and the skills to create mesmerizing interactive art. Tweak values, explore shapes, and make your own experiments!
Save your favorite renders as PNGs and share your creations with friends or your portfolio.
Dive in, code along and discover new coding techniques and dimensions of visual art.