[metapost] MP docs

Stephan Hennig mailing_list at arcor.de
Thu May 17 15:09:09 CEST 2007


Dan Luecking schrieb:

> Also .5(1,1,1,1) still produces black, while .5(0,0,0,1) gives a
> gray.

The attached example compares shading from magenta to (0,0,0,1) and
(1,1,1,1).  Clearly, mediating with (1,1,1,1) gives not the expected
result (half of the shading is black), but (0,0,0,1) does.

Best regards,
Stephan Hennig


beginfig(1);
  for i=0 upto 100:
    fill unitsquare xscaled 200bp yscaled 8bp shifted (0,8i)
      withcmykcolor (i/100)[(1,0,0,0),(0,0,0,1)];
    fill unitsquare xscaled 200bp yscaled 8bp shifted (220bp,8i)
      withcmykcolor (i/100)[(1,0,0,0),(1,1,1,1)];
  endfor
endfig;
end


More information about the metapost mailing list