diff options
author | Hans Hagen <pragma@wxs.nl> | 2004-04-09 00:00:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2004-04-09 00:00:00 +0200 |
commit | ab3f887feadf929129087cd2cbc3783064507565 (patch) | |
tree | c0c12916ff903071880d0e157ff422b3f2cab2f4 /tex/context/sample/demo-mps.tex | |
parent | b3e51f52d2070a709e3089ada6054cd2080590ca (diff) | |
download | context-ab3f887feadf929129087cd2cbc3783064507565.tar.gz |
stable 2004.04.09
Diffstat (limited to 'tex/context/sample/demo-mps.tex')
-rw-r--r-- | tex/context/sample/demo-mps.tex | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tex/context/sample/demo-mps.tex b/tex/context/sample/demo-mps.tex new file mode 100644 index 000000000..57bb690c0 --- /dev/null +++ b/tex/context/sample/demo-mps.tex @@ -0,0 +1,23 @@ +% interface=en + +\starttext + +\setupcolors + [state=start] + +\startMPpage + path p ; color c[] ; + p := fullsquare scaled 4cm ; + c[0] := transparent(1,.5,red) ; + c[1] := transparent(1,.5,green) ; + c[2] := transparent(1,.5,blue) ; + for i = 0 upto 2 : + fill p rotated (i*30) withcolor white ; + endfor ; + for i = 0 upto 2 : + fill p rotated (i*30) withcolor c[i] ; + endfor ; + addbackground withcolor transparent(1,.5,cmyk(0,0,1,0)) ; +\stopMPpage + +\stoptext
\ No newline at end of file |