Public
Edited
Oct 11, 2021
2 stars
Also listed in…
Math
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
zCurveIFS = new IteratedFunctionSystem([
scale(1 / 3),
shift([1 / 3, 0])
.compose(rotate(pi / 4))
.compose(scale(Math.sqrt(2) / 6)),
reflect([1, 0], [1 / 2, 0])
.compose(shift([1 / 2, 1 / 6]))
.compose(rotate(-Math.PI / 2))
.compose(scale(1 / 3)),
shift([1 / 2, -1 / 6])
.compose(rotate(pi / 4))
.compose(scale(Math.sqrt(2) / 6)),
scale(1 / 3, [1, 0])
])
Insert cell
import {
shift,
scale,
rotate,
reflect,
pi
} from "@mcmcclur/affinefunction-class"
Insert cell
import { IteratedFunctionSystem } from "@mcmcclur/iteratedfunctionsystem-class"
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more