Tagged Questions
12
votes
2answers
181 views
Pattern that matches colors
Suppose I'm writing a function that takes a color as a parameter; for example:
drawShape[color_] := Graphics[{Style[Disk[], color]}];
But if the caller inputs an ...
11
votes
2answers
212 views
can a ColorFunction have side effects?
Can anyone explain this (to me) odd behavior. If I run this code once (fresh kernel) it works as intended.
...
