diff options
author | Hans Hagen <pragma@wxs.nl> | 2020-12-01 18:35:58 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2020-12-01 18:35:58 +0100 |
commit | 9273441a6cb7b02b3336e0a862ee311dbd3653e9 (patch) | |
tree | b6156b80c8d3cd658ace7fa082dfc49407d1f388 /metapost | |
parent | 0e813ddcd6168945510ca50913c00fc8b633b733 (diff) | |
download | context-9273441a6cb7b02b3336e0a862ee311dbd3653e9.tar.gz |
2020-12-01 17:51:00
Diffstat (limited to 'metapost')
-rw-r--r-- | metapost/context/base/mpiv/mp-tool.mpiv | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/metapost/context/base/mpiv/mp-tool.mpiv b/metapost/context/base/mpiv/mp-tool.mpiv index 3a5dfa81e..5ace55d75 100644 --- a/metapost/context/base/mpiv/mp-tool.mpiv +++ b/metapost/context/base/mpiv/mp-tool.mpiv @@ -1164,7 +1164,7 @@ primarydef p randomized s = ( elseif pair p : p randomshifted s elseif cmykcolor p : - if color s : + if cmykcolor s : ((uniformdeviate cyanpart s) * cyanpart p, (uniformdeviate magentapart s) * magentapart p, (uniformdeviate yellowpart s) * yellowpart p, @@ -1175,7 +1175,7 @@ primarydef p randomized s = ( ((uniformdeviate s) * p) fi elseif rgbcolor p : - if color s : + if rgbcolor s : ((uniformdeviate redpart s) * redpart p, (uniformdeviate greenpart s) * greenpart p, (uniformdeviate bluepart s) * bluepart p) |