This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { PhonemeKey } from '../types'; | |
| /** | |
| * PhonemeAnalyzer redesigned for the Hanna-Barbera animation system (Preston Blair). | |
| * Classifies audio input into 6 mouth shapes (A-F) based on formants and amplitude. | |
| */ | |
| export class PhonemeAnalyzer { | |
| private analyser: AnalyserNode; | |
| private dataArray: Uint8Array; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Modified from https://github.com/joshmarinacci/webxr-experiments/blob/master/nonogram/jstats.js | |
| import * as THREE from 'three' | |
| export default class JStats extends THREE.Group { | |
| constructor (renderer) { | |
| super() | |
| this.renderer = renderer | |
| const can = document.createElement('canvas') | |
| can.width = 256 | |
| can.height = 128 | |
| this.canvas = can |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Import the component --> | |
| <script type="module" src="https://unpkg.com/@google/model-viewer/dist/model-viewer.js"></script> | |
| <script nomodule src="https://unpkg.com/@google/model-viewer/dist/model-viewer-legacy.js"></script> | |
| <!-- Use it like any other HTML element --> | |
| <model-viewer src="assets/model.glb" ios-src="assets/model.usdz" preload camera-controls | |
| background-color="#cccccc" auto-rotate shadow-intensity=".8" poster="img/poster.png" | |
| alt="A 3D model of a futuristic chest"> | |
| </model-viewer> |