All examples By author By category About


Divided Line

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...

forked from emeeks's block: Divided Line

forked from anonymous's block: Divided Line