Skip to main content

a three.js project template generator

Project description

https://badge.fury.io/py/threegen.svg

threegen

a three.js project template generator

Installation

threegen can be installed easily through pip, simply run:

$ pip install threegen
$ threegen

Usage

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]
                [name]

create a template three.js project

positional arguments:
  name

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.

Filename, size & hash SHA256 hash help File type Python version Upload date
threegen-0.2.4.tar.gz (4.1 kB) Copy SHA256 hash SHA256 Source None Jun 10, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page