Skip to content

Instantly share code, notes, and snippets.

@mitchellbusby
Created June 11, 2018 10:37
Show Gist options
  • Save mitchellbusby/392333e3a65c386b3984c6df231b0ca5 to your computer and use it in GitHub Desktop.
Save mitchellbusby/392333e3a65c386b3984c6df231b0ca5 to your computer and use it in GitHub Desktop.
Neat sine graph in isomer
const prisms = [...Array(512)].map((_, i) => {
const dz = Math.sin((Number(i) * (Math.PI / 128)));
const startingPoint = Point(0, i / 64, 0);
return new Shape.Prism(startingPoint, 0.5, 0.0625, dz);
}).reverse();
iso.add(prisms, new Color([160, 60, 50]));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment