mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Merge remote branch 'origin/master'
This commit is contained in:
commit
0ab9e38068
2 changed files with 5 additions and 1 deletions
|
@ -292,6 +292,10 @@ var Color = this.Color = Base.extend(new function() {
|
|||
}
|
||||
};
|
||||
}, new function() {
|
||||
// Injection scope to produce conversion methods for the various color
|
||||
// components known by the possible color types. Requesting any of these
|
||||
// components on any color internally converts the color to the required
|
||||
// type and then returns its component, using bean access.
|
||||
return Base.each({
|
||||
rgb: ['red', 'green', 'blue'],
|
||||
hsb: ['hue', 'saturation', 'brightness'],
|
||||
|
|
|
@ -42,6 +42,6 @@ var GradientStop = this.GradientStop = Base.extend({
|
|||
equals: function(stop) {
|
||||
return stop == this || stop instanceof GradientStop
|
||||
&& this._color.equals(stop._color)
|
||||
&& rampPoint == stop._rampPoint;
|
||||
&& this._rampPoint == stop._rampPoint;
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue