Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
function draw(transform) {
const scaleX = transform.rescaleX(x);
const scaleY = transform.rescaleY(y);;;
context.clearRect(0, 0, width, height);
dataExample.forEach( point => {
drawPoint(scaleX, scaleY, point, transform.k);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment