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; } };