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