You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
352 B
18 lines
352 B
/**
|
|
* @param {Array.<Object>} colorStops
|
|
*/
|
|
var Gradient = function (colorStops) {
|
|
this.colorStops = colorStops || [];
|
|
};
|
|
|
|
Gradient.prototype = {
|
|
constructor: Gradient,
|
|
addColorStop: function (offset, color) {
|
|
this.colorStops.push({
|
|
offset: offset,
|
|
color: color
|
|
});
|
|
}
|
|
};
|
|
var _default = Gradient;
|
|
module.exports = _default; |