summaryrefslogtreecommitdiff
path: root/tex/context/sample/common/demo-mps.tex
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/sample/common/demo-mps.tex')
-rw-r--r--tex/context/sample/common/demo-mps.tex23
1 files changed, 23 insertions, 0 deletions
diff --git a/tex/context/sample/common/demo-mps.tex b/tex/context/sample/common/demo-mps.tex
new file mode 100644
index 000000000..57bb690c0
--- /dev/null
+++ b/tex/context/sample/common/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