mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-03-13 16:33:28 -04:00
Add comment explaining color conversion code.
This commit is contained in:
parent
93d3214a35
commit
86ca1ed1e7
1 changed files with 4 additions and 0 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'],
|
||||
|
|
Loading…
Reference in a new issue