Files
ueblueprint/js/entity/ColorChannelValueEntity.js
barsdeveloper a55a475f70 Various fixes
2022-10-09 19:20:22 +02:00

16 lines
389 B
JavaScript
Executable File

import Utility from "../Utility"
import IntegerEntity from "./IntegerEntity"
export default class ColorChannelValueEntity extends IntegerEntity {
static attributes = {
value: Number,
}
/** @param {Object | Number | String} options */
constructor(options = 0) {
super(options)
this.value = Utility.clamp(this.value, 0, 255)
}
}