]> git.r.bdr.sh - rbdr/lissajous/blob - lib/components/color.js
9be7ff15f1b5bea07bcd81e86c6790237d10e155
[rbdr/lissajous] / lib / components / color.js
1 import { Component } from '@serpentity/serpentity';
2
3 /*
4 * Stores an RGBA color. NOTE: Currently unused as color depends on the
5 * position of the vertex. This is intended to change once we add multiple
6 * curves in a single render.
7 */
8 export default class Color extends Component {
9 constructor(config) {
10
11 super(config);
12
13 this.r = Math.random();
14 this.g = Math.random();
15 this.b = Math.random();
16 this.a = 1.0;
17 }
18 };
19