UNPKG
extrude
Version:
latest (1.0.2)
1.0.2
1.0.1
1.0.0
turn a 2d shape into a 3d mesh with extrusion
github.com/freeman-lab/extrude
freeman-lab/extrude
extrude
/
shapes
/
triangle.js
8 lines
(6 loc)
•
199 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
var d =
1
var points =
[[-d, -0.4 * d * Math.sqrt(3)], [d, -0.4 * d * Math.sqrt(3)], [0, 0.6 * d * Math.sqrt(3)]]
module
.exports = { points: points, colors:
[[0.1, 0.6, 0.9], [0.2, 0.5, 0.7]]
}