I'd thought I'd done in this in the past but I don't seem to be able to parse a color input
What do I need to do?
I'd thought I'd done in this in the past but I don't seem to be able to parse a color input
What do I need to do?
"join" color to get text representation.
Lovely
I wonder if there is a (polite ) name for this color representation that looks like text but isn't?
It's a magic of the result bubble. It converts raw JS objects to something "displayable".
@ morphic.js
Color.prototype.toString = function () {
return 'rgba(' +
Math.round(this.r) + ',' +
Math.round(this.g) + ',' +
Math.round(this.b) + ',' +
this.a + ')';
};
you don't need to turn the first-class color object into a text and then parse it at all. Instead you use the clr_
extensions with the color input directly:
example:
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.