Message Boards Message Boards

0
|
4264 Views
|
2 Replies
|
1 Total Likes
View groups...
Share
Share this post:

Can a list element be saved with a color?

Posted 10 years ago

In[667]:= seq = {a, b, c, d} (* make "c" green" *)

Out[667]= {a, b, c, d} (recover "c" as green in color)

POSTED BY: Douglas Youvan
2 Replies

Wow, that's great. Thanks. Part even works with == conditions.

Now I figure out an "overstrike" so if two conditions are true, I can get CMY from RGB for 6 colors total.

POSTED BY: Douglas Youvan

Hi,

would this work for you?

seq = {a, b, Style[c, Green], d}

Cheers,

M.

POSTED BY: Marco Thiel
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract