]>
git.r.bdr.sh - rbdr/lissajous/blob - lib/components/color.js
1 import { Component
} from '@serpentity/serpentity';
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.
8 export default class Color
extends Component
{
13 this.r
= Math
.random();
14 this.g
= Math
.random();
15 this.b
= Math
.random();