]>
Commit | Line | Data |
---|---|---|
5f6ef99e RBR |
1 | import { 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 |
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 |