\starttext

\definecolor [whatever] [c=1,a=1,t=0.5]

\definecolor [blue]   [c=1,m=.38,y=0,k=.64] % pantone pms 2965 uncoated m
\definecolor [yellow] [c=0,m=.28,y=1,k=.06] % pantone pms  124 uncoated m

\definespotcolor [blue-100]   [blue]   [p=1]
\definespotcolor [yellow-100] [yellow] [p=1]

\definemultitonecolor [somecolor] [blue=.12,yellow=.28] [c=.1,m=.1,y=.3,k=.1]

\defineviewerlayer[rotation:30]
\defineviewerlayer[rotation:60]
\defineviewerlayer[rotation:90]

\startMPpage
fill fullcircle scaled 10cm shifted ( 0cm,0) withcolor transparent(1,0.5,(1,1,0,0)) ;
fill fullcircle scaled 10cm shifted ( 2cm,0) withcolor 0.75*transparent(1,0.5,green) ;
fill fullcircle scaled 10cm shifted ( 4cm,0) withcolor \MPcolor{whatever} ;
fill fullcircle scaled 10cm shifted ( 6cm,0) withcolor transparent(1,0.5,\MPcolor{blue-100}) ;
fill fullcircle scaled 10cm shifted ( 8cm,0) withcolor     \MPcolor{blue-100} ;
fill fullcircle scaled  9cm shifted ( 8cm,0) withcolor .75*\MPcolor{blue-100} ;
fill fullcircle scaled  8cm shifted ( 8cm,0) withcolor .50*\MPcolor{blue-100} ;
fill fullcircle scaled 10cm shifted (10cm,0) withcolor (0,1,1,0) ;
fill fullcircle scaled 10cm shifted (12cm,0) withcolor (0,1,1,0) withtransparency (1,0.5);

draw textext("Hello, does this work 1?") shifted (0,0cm) ;
draw textext("Hello, does this work 2?") shifted (0,1cm) ;
draw textext("Hello, does this work 3?") shifted (0,2cm) ;

% For Mojca: colored textexts.

draw textext("\bfd Hello, {\green does} this work 4?") shifted (8cm,-2cm) rotated  10 withcolor white ;
draw textext("\bfd Hello, {\green does} this work 5?") shifted (8cm,-2cm) rotated -10 withcolor white withtransparency (1,0.5);

draw externalfigure ("cow.pdf") xsized 4cm ;

draw figure ("cow.pdf") rotated -25 xsized 2cm shifted (14cm,-3cm) ;

path    p ; p := fullcircle scaled 3cm ;
numeric s ; s := define_circular_shade(origin,origin,0,2cm,.8white,green) ;
fill p withshade s ;
draw p ;

for i=1 step 10 until 360:
    draw textext(decimal i) shifted (0,4.5cm) rotated i withcolor i/360 ;
endfor ;

graphictext ("Hi There!") scaled 10 ;

% For Mojca: bitmaps for gnuplot.

draw bitmapimage (
    128, 128,
    "
[encoded data, 107520 characters]
        "
) rotated 15 scaled 2cm shifted (6cm,2cm) ;

currentpicture := currentpicture shifted (12cm,0) ;
fill fullsquare scaled 8cm rotated 30 withcolor red   withtransparency(1,.5) onlayer "rotation:30" ;
fill fullsquare scaled 8cm rotated 60 withcolor green withtransparency(1,.5) onlayer "rotation:60" ;
fill fullsquare scaled 8cm rotated 90 withcolor blue  withtransparency(1,.5) onlayer "rotation:90" ;

\stopMPpage

\stoptext
