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 spacy | |
from spacy.matcher import Matcher | |
import syllapy | |
import random | |
nlp = spacy.load("en_core_web_sm") | |
matcher2 = Matcher(nlp.vocab) | |
matcher3 = Matcher(nlp.vocab) | |
matcher4 = Matcher(nlp.vocab) |
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 * as BABYLON from 'babylonjs' | |
export default class Danse2 { | |
private _scene: BABYLON.Scene | |
// _t: timer for the accumulated time | |
private _t: number | |
private _tubes: BABYLON.Mesh[] | |
private _balls: BABYLON.Mesh[] |
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 * as BABYLON from 'babylonjs' | |
export default class Danse2 { | |
private _scene: BABYLON.Scene | |
// _t: timer for the accumulated time | |
private _t: number | |
private _tubes: BABYLON.Mesh[] | |
private _balls: BABYLON.Mesh[] |
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 * as BABYLON from 'babylonjs' | |
export default class Music { | |
private _music: BABYLON.Sound | |
private _analyser: BABYLON.Analyser | |
constructor(scene: BABYLON.Scene) { | |
this._music = new BABYLON.Sound( | |
"Music", | |
"../music/m_lewin_arab.mp3", |
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 * as BABYLON from 'babylonjs'; | |
import Danse2 from './Danse2' | |
export default class MyScene { | |
private _canvas: HTMLCanvasElement; | |
private _engine: BABYLON.Engine; | |
private _scene: BABYLON.Scene; | |
private _camera: BABYLON.ArcRotateCamera; | |
private _light: BABYLON.Light; |
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 * as BABYLON from 'babylonjs' | |
export default class Danse2 { | |
private _scene: BABYLON.Scene | |
// _t: timer for the accumulated time | |
private _t: number | |
private _tubes: BABYLON.Mesh[] | |
private _current: number = 0 |
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 * as BABYLON from 'babylonjs'; | |
import Danse from './Danse' | |
export default class MyScene { | |
private _canvas: HTMLCanvasElement; | |
private _engine: BABYLON.Engine; | |
private _scene: BABYLON.Scene; | |
private _camera: BABYLON.ArcRotateCamera; | |
private _light: BABYLON.Light; |
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 * as BABYLON from 'babylonjs' | |
export default class Danse { | |
private _scene: BABYLON.Scene | |
// _t: timer for the accumulated time | |
private _t: number | |
private _cat: BABYLON.LinesMesh | |
private _sphere: BABYLON.Mesh |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Six</title> | |
<style> | |
html,body {overflow: hidden;width: 100%;height: 100%;margin: 0;padding: 0;} | |
#renderCanvas {width: 100%;height: 100%;touch-action: none;} | |
</style> |
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
{ | |
"compileOnSave": true, | |
"compilerOptions": { | |
"target": "es5", | |
"module": "es2015", | |
"sourceMap": true, | |
"outDir": "./dist", | |
"types": [ | |
"babylonjs", | |
"babylonjs-gui", |