UNPKG

visualiser.js

Version:

An audio visualiser interface & plugin system.

12 lines (10 loc) 353 B
import * as THREE from 'https://cdn.jsdelivr.net/npm/three@0.112.1/build/three.module.js'; import Layer from './Layer.js' export default class Layer3D extends Layer { type = 'Layer3D' constructor({width, height}){ const camera = new THREE.PerspectiveCamera(75, width/height) camera.position.z = 10; super({width, height, camera}) } }