Files
ueblueprint/js/entity/ColorChannelEntity.js
barsdeveloper 1c2778fbf8 Still WIP
2024-05-28 16:44:39 +02:00

21 lines
368 B
JavaScript

import P from "parsernostrum"
import IEntity from "./IEntity.js"
export default class ColorChannelEntity extends IEntity {
static grammar = P.number.map(v => new this(v))
constructor(value = 0) {
super()
this.value = value
}
valueOf() {
return this.value
}
toString() {
return this.value.toFixed(6)
}
}