'Sample Color' script in 'Color Profiles' project - can it be simplified?

I like very much what I see in the Color Profiles video.

But the 'Sample Color' script could be simplified, I guess.

I guess, replace item could use hue at myself, where pen hue is used?

Actually, that version is already simplified. It doesn't have to calculate the hue at myself twice.

Yeah, but if its sole purpose is to prevent the hue at myself to be calculated twice, then the use of pen hue is still unwarranted since it is basically just a surrogate for a temporary variable, so I guess using a temp var would make the code still semantically 'simpler' (if not syntactically shorter).

Right, there's no reason to use SET PEN at all if you aren't going to be drawing with the pen.

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