@eulertour/studio
TypeScript icon, indicating that this package has built-in type declarations

1.0.32 • Public • Published

studio.js

Studio.js is the library that powers Euler Studio using three.js.

Installation

To run locally you can install into your project with your package manager:

npm install @eulertour/studio

Setup

The entry point from your animation is a class that implements the StudioScene interface. Most of the three.js boilerplate has been setup for you here.

import { AnimationRepresentation, StudioScene, THREE } from "@eulertour/studio";

export default class Animation implements StudioScene {
  animations: AnimationRepresentation[];

  constructor(
    public scene: THREE.Scene,
    public camera: THREE.OrthographicCamera,
    public renderer: THREE.WebGLRenderer
  ) {
    this.animations = [];
  }

  loop(time: number, deltaTime: number) {}
}

TODO run the animation

Examples

TODO

Readme

Keywords

none

Package Sidebar

Install

npm i @eulertour/studio

Weekly Downloads

21

Version

1.0.32

License

ISC

Unpacked Size

5.95 MB

Total Files

144

Last publish

Collaborators

  • eulertour