Skip to main content

a three.js project template generator

Project description


a three.js project template generator


threegen can be installed easily through pip, simply run:

$ pip install threegen
$ threegen


threegen is a command-line script that generates a basic template for a three.js project. The generated project is intended to be used as an ES6 module, although future versions will relax this constraint. The program creates a basic Javascript file and sets up a scene, WebGLRenderer, PerspectiveCamera, and optionally OrbitControls (via the orbit-controls-es6 package) if passed the --orbit flag. The Detector module is also included in order to check for WebGL support.

The full list of options are below:

usage: threegen [-h] [--clear COLOR] [--eslint] [--no-npm] [--orbit]
                [--orbit-no-zoom] [--private]

create a template three.js project

positional arguments:

optional arguments:
  -h, --help       show this help message and exit
  --clear COLOR    set the renderer clear color (default 0x000000)
  --eslint         install the eslint NPM package
  --no-npm         disable NPM package initialization
  --orbit          add orbit controls
  --orbit-no-zoom  disable zoom on orbit controls
  --private        initialize the project as a private package

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for threegen, version 0.2.4
Filename, size File type Python version Upload date Hashes
Filename, size threegen-0.2.4.tar.gz (4.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page