bebraw/colorjoe

How to access colorjoe without using a global variable?

Closed this issue · 3 comments

I am updating the colorpicker in an on event with:

joe.set("rgb(" + red_value + "," + green_value + "," + blue_value + ")");

joe is currently a global variable set up on document ready:

joe = colorjoe.hsl('hslPicker', '#113c38', ['currentColor',['fields', {space: 'RGB', limit: 255, fix: 2}]]);  

How can I access colorjoe without using a global variable?

Hi,

Can you set up a standalone example? I'm missing something obvious here. Why/where do you need to access it?

@oshihirii Hey, could you set up an example of this?

Let's close since we repackaged this.