| 1 |
.PS |
| 2 |
# Shadowed.m4 |
| 3 |
gen_init |
| 4 |
NeedDpicTools |
| 5 |
|
| 6 |
Boxes: [ |
| 7 |
movewid = movewid/2 |
| 8 |
B1: shadowed(,, |
| 9 |
shadowthick=lthick*4; shadowcolor="lightgray"; shadowangle=-60; \ |
| 10 |
attrib=fill_(0.85) "box") |
| 11 |
|
| 12 |
move |
| 13 |
R: shadowed(box,, rad=6bp__; shadowthick=lthick*4; \ |
| 14 |
attrib=wid boxht*2 shaded "orange" outlined "red" thick 2 \ |
| 15 |
`"\tt box\char44\char44" "\tt rad=6bp\_\_"') |
| 16 |
|
| 17 |
move |
| 18 |
C: shadowed(circle,, |
| 19 |
shadowthick=lthick*4;shadowcolor="blue";\ |
| 20 |
attrib=outlined "green" shaded "green" diam 0.75 "circle") |
| 21 |
|
| 22 |
move |
| 23 |
E: shadowed(ellipse,, |
| 24 |
shadowthick=lthick*4; attrib=ht boxwid wid boxht shaded "yellow" \ |
| 25 |
dashed "ellipse") |
| 26 |
|
| 27 |
b = boxht |
| 28 |
move to (E.e.x+b,E.s.y) |
| 29 |
F: shadowed(line,, |
| 30 |
attrib=left b then up b right b then down b right b then to Here \ |
| 31 |
shaded "orange" outlined "red" thick 3;shadowthick=4.5bp__;\ |
| 32 |
shadowangle=45) |
| 33 |
"line" at F.n+(0,-0.3) |
| 34 |
] |
| 35 |
|
| 36 |
Others:[ |
| 37 |
movewid = movewid*0.4 |
| 38 |
|
| 39 |
cmyktorgb(96,0,0,0,r,g,b) |
| 40 |
ColoredV(circle,(r,g,b), rad 0.4 "Hello" outlined "cyan") |
| 41 |
|
| 42 |
move |
| 43 |
s = 0.5; v = 0.8 |
| 44 |
hsvtorgb(0,s,v,r0,g0,b0) |
| 45 |
hsvtorgb(90,s,v,r1,g1,b1) |
| 46 |
hsvtorgb(180,s,v,r2,g2,b2) |
| 47 |
ColoredV(box,((0,r0,g0,b0, 0.5,r1,g1,b1, 1,r2,g2,b2)), |
| 48 |
outlined "blue" rad 0.1 ht 2*boxht "Hmm...") |
| 49 |
|
| 50 |
move |
| 51 |
ColoredV(ellipse,(g,r,b),wid 0.75 ht 1 outlined "magenta" "OK") |
| 52 |
|
| 53 |
move |
| 54 |
ColoredV(ellipse,,outlined "magenta" shaded "yellow" "Goodbye") |
| 55 |
|
| 56 |
move |
| 57 |
ColoredV(box, |
| 58 |
((0,0,0,0, 0.25,0,0,0, 0.251,1,1,1, 0.8,1,1,1, 0.801,1,0,0, 1,1,0,0)), |
| 59 |
ht 3/4 wid 1 rad 3/32) |
| 60 |
"\textcolor{white}{Heading}" at last [].n below |
| 61 |
] with .nw at Boxes.sw #+(0,-moveht) |
| 62 |
|
| 63 |
.PE |