Published
Edited
Oct 19, 2021
1 fork
Importers
2 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
sierpIFS = new IteratedFunctionSystem([
scale(1 / 2),
scale(1 / 2, [1, 0]),
scale(1 / 2, [1 / 2, Math.sqrt(3) / 2])
])
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
polygon = {
seed;
return makeConvexPolygon(7).map(([x, y]) => [1.5 * x - 0.3, 1.4 * y - 0.2]);
}
Insert cell
Insert cell
import { makeConvexPolygon } from "@stwind/random-convex-polygons"
Insert cell
MathJax = require('https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js').catch(
() => window['MathJax']
)
Insert cell
import { scale } 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