This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
ideas:color-object [2014/07/08 23:15] – Change to explicit "toString" method. tabatkins | ideas:color-object [2014/07/09 19:24] – Reword parseColor() definition. tabatkins | ||
---|---|---|---|
Line 45: | Line 45: | ||
| | ||
partial interface CSS { | partial interface CSS { | ||
- | | + | |
}; | }; | ||
- | If parseColor | + | parseColor() takes a string containing any CSS color, and returns an RGBAColor for it. If the string isn't parseable as a color, throw a SyntaxError exception. |
- | such as '' | + | |
- | but no el argument | + | The optional second argument is used to resolve colors |
- | throw a XXX error. | + |