Created
June 11, 2018 10:37
-
-
Save mitchellbusby/392333e3a65c386b3984c6df231b0ca5 to your computer and use it in GitHub Desktop.
Neat sine graph in isomer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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