UNPKG

@awayjs/graphics

Version:
26 lines (25 loc) 735 B
var ColorSegmentPoint = /** @class */ (function () { function ColorSegmentPoint(life, color) { //0<life<1 if (life <= 0 || life >= 1) throw (new Error('life exceeds range (0,1)')); this._life = life; this._color = color; } Object.defineProperty(ColorSegmentPoint.prototype, "color", { get: function () { return this._color; }, enumerable: false, configurable: true }); Object.defineProperty(ColorSegmentPoint.prototype, "life", { get: function () { return this._life; }, enumerable: false, configurable: true }); return ColorSegmentPoint; }()); export { ColorSegmentPoint };