]> git.r.bdr.sh - rbdr/lissajous/blame - lib/components/color.js
Add a few comments
[rbdr/lissajous] / lib / components / color.js
CommitLineData
5f6ef99e
RBR
1import { Component } from '@serpentity/serpentity';
2
32e2eed2
RBR
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 */
5f6ef99e
RBR
8export 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