Can't decode a color input

I'd thought I'd done in this in the past but I don't seem to be able to parse a color input

colorIssue script pic

image

image

What do I need to do?

"join" color to get text representation.

Lovely :slight_smile:

I wonder if there is a (polite :slight_smile: ) 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:

clr_extensions

example:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.