]> git.r.bdr.sh - rbdr/lissajous/blob - lib/factories/curves.js
f6db460d0374894f8f5b12a178126c9a4c8dcbb9
[rbdr/lissajous] / lib / factories / curves.js
1 import { Entity } from '@serpentity/serpentity';
2 import Position from '@serpentity/components.position';
3 import TripleFrequency from '../components/triple_frequency';
4 import TriplePhase from '../components/triple_phase';
5 import TripleAmplitude from '../components/triple_amplitude';
6 import Color from '../components/color';
7
8 export function lissajousCurve() {
9
10 const entity = new Entity();
11 entity.addComponent(new Position());
12 entity.addComponent(new TripleFrequency());
13 entity.addComponent(new TriplePhase());
14 entity.addComponent(new TripleAmplitude());
15 entity.addComponent(new Color());
16
17 return entity;
18 }