29.11.2012 Views

MetaFun - Pragma ADE

MetaFun - Pragma ADE

MetaFun - Pragma ADE

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

288<br />

yy := cc rotatedaround(origin,120) ;<br />

mm := cc rotatedaround(origin,240) ;<br />

fill fullcircle scaled radius withcolor white ;<br />

fill rr withcolor red ; fill cc withcolor white-red ;<br />

fill gg withcolor green ; fill mm withcolor white-green ;<br />

fill bb withcolor blue ; fill yy withcolor white-blue ;<br />

for i = rr,gg,bb,cc,mm,yy : draw i withcolor .5white ; endfor ;<br />

currentpicture := currentpicture xsized size ;<br />

enddef ;<br />

Since we don't want to duplicate a graphic, this time we show the dark alternatives.<br />

colorcircle(4cm, .5red, .5green, .5blue) ;<br />

This kind of unsafe path calculations are very sensitive to breaking. Changing the radius/4 into<br />

something else demonstrates this but we will not challenge this macro that much. Therefore, the<br />

50% color circle shows up as:<br />

This command is part of METAFUN and can be used to determine nice color combinations by also<br />

looking at their complementary colors.<br />

colorcircle (4cm, .7red, .5green, .3blue) ;<br />

A few applications Color circles

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!