Package Exports
- chalks
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (chalks) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Chalks
A library containing methods to manipulate points and draw on top of p5js
Chalks is fully compatible with p5js and just provides some handy tools on top to simplify the drawing process.
Example ` function setup() { ch = new chalks({width: 1000, height: 1000, seed:4, background:215}) points = ch.attractors.dejon([500,650], -2.24, 0.43, -0.66, -8.23, 250, 3200) }
function draw() { for (var i = 2; i < points.length; i++) { p0 = points[i-1] p1 = points[i] ch.addElem(ch.line(p0, p1), {stroke:color(ch.rnd(["black","white"])), alpha:ch.rnd(12,52), strokeWidth:ch.rnd(2,4)}) } ch.stopAt(1) } `