package
Create a generic three.js application for quick prototyping
npm install threejs-createGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
A quick way to prototype three.js applications without spending time on boilerplate code
$ npm install --save threejs-create
You can either extend with ES6 classes or just take whatever you need, as in the following example:
import * as THREE from 'three'
import CreateLoop from 'raf-loop'
import CreateApp from 'threejs-create'
const {
scene,
render
} = new CreateApp()
// Use three.js as you're used to
let geometry = new THREE.IcosahedronGeometry(1, 1)
let material = new THREE.MeshBasicMaterial({ color: 0xfff999fff, wireframe: true })
let mesh = new THREE.Mesh(geometry, material)
scene.add(mesh)
// Render loop
CreateLoop(render).start()MIT © Terkel Gjervig
Estimated unpacked size across 38 packages.
20.8 MB
Includes dependencies.
4 direct · 1 outdated
^0.82.1
0.187.0
^1.0.0
1.0.1
^1.1.1
1.2.4
github:superguigui/wagner
0.1.6