block by emeeks 14c4e5a2ea7cabc7e6f1e33cd61dc6b1

Divided Line

Full Screen

Here’s an initial stab at building a Divided Line generator. The basic idea is to create a generator that takes a set of parameters and returns an array of coordinates corresponding to the segments of that line that exist within the parameters sent. In this example, I sample the previous point along with the first one so that the corresponding line can be drawn from the earlier position to the current one. Notice with the cardinal interpolation that the line doesn’t interpolate properly at the junctions between the lines (the original interpolation is drawn as the black background line). This is more pronounced with basis interpolation.

Most of the code is for randomly generating points and bounding boxes…

index.html