Tag

Tutorial

Learn Creative Coding and Generative Art. Each tutorial discusses a particular algorithm or programming technique for the purpose of creating interesting visuals.

34 posts
Tutorial
Quickhull Algorithm for Convex Hulls
One method for finding the convex hull of a point set is the Quickhull algorithm. It makes use of the divide and conquer paradigm, and builds the convex hull in a recursive manner. This post is a break-down of a Quickhull implementation.
2023 APR 20 · 14 MIN READ
Read article →
Tutorial
Building an Embeddable Javascript Widget
In this tutorial we'll cover how to create a vanilla javascript widget that can be embedded on websites, and is capable of executing javascript safely in an iframe.
2023 APR 16 · 17 MIN READ
Read article →
Tutorial
An Introduction to Javascript Generators
In this post we'll go over everything that you should know about Javascript Generators. Javascript generators are a versatile feature of ES6 and allow for interesting programming strategies, that otherwise wouldn't be possible.
2022 DEC 24 · 12 MIN READ
Read article →
Tutorial
The P5 Graphics Buffer
In this post we'll have a look at the P5JS graphics buffer and how to effectively use it in your P5 sketching practice. We'll also create a variation of the 10 PRINT pattern that repeats seamlessly.
2022 NOV 25 · 9 MIN READ
Read article →
Tutorial
An Algorithm for Polygon Intersections
In this post we'll work our way towards an algorithm that can compute convex polygon intersections. We'll also explore a method for intersections between axis-aligned rectangles, a function that can determine the intersection of two line segments, as well as a point in polygon test.
2022 SEP 30 · 25 MIN READ
Read article →
Tutorial
A Simple Solution for Shape Packing in 2D
Shape packing is a popular type of sketch in gen-art, but is often trickier than it might seem when you try to pack anything more complicated than a simple circle. In this post we'll have a look what goes into collision detection as well as a strategy to pack any arbitrary shape in 2D.
2022 JUL 22 · 21 MIN READ
Read article →
Tutorial
Bowyer-Watson Algorithm for Delaunay Triangulation
The Bowyer-Watson algorithm for Delaunay triangulation is maybe one of the easier methods to implement and understand for obtaining a Delaunay Triangulation.
2022 JUN 12 · 14 MIN READ
Read article →
Tutorial
Working with SVGs in P5JS
P5JS doesn't offer native SVG support, there is however a way to run P5 in an 'SVG' mode using zenozeng's SVG runtime. Running P5 in this SVG mode also requires a lot of interaction with the DOM, which we'll discuss in this post.
2022 MAY 19 · 11 MIN READ
Read article →
Tutorial
9 Tips for Tsubuyaki Processing
Tsubuyaki processing has become a popular and fun little challenge on Twitter. In this post I'll be going over some character saving tricks that can come in clutch when you're out of ideas for reducing the size of your code!
2022 MAY 10 · 10 MIN READ
Read article →
Tutorial
An Algorithm for Irregular Grids
A step by step tutorial to constructing a variety of irregular grids
2022 APR 30 · 10 MIN READ
Read article →
Tutorial
A Guide to Hexagonal Grids in P5JS
A tutorial on multiple ways to create a hexagonal grid in p5js
2022 FEB 28 · 12 MIN READ
Read article →
Tutorial
An Algorithm for Polygons with Rounded Corners
An approach for creating all sorts of different smooth shapes in p5, using the canvas rendering context.
2022 JAN 26 · 23 MIN READ
Read article →