summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2020-09-10 18:10:49 +0200
committerThomas Deutschmann <whissi@gentoo.org>2020-09-11 20:06:36 +0200
commitacfc02c1747065fe450c7cfeb6f1844b62335f08 (patch)
tree5887806a2e6b99bbb0255e013a9028810e230a7f /examples
parentImport Ghostscript 9.52 (diff)
downloadghostscript-gpl-patches-acfc02c1747065fe450c7cfeb6f1844b62335f08.tar.gz
ghostscript-gpl-patches-acfc02c1747065fe450c7cfeb6f1844b62335f08.tar.bz2
ghostscript-gpl-patches-acfc02c1747065fe450c7cfeb6f1844b62335f08.zip
Import Ghostscript 9.53ghostscript-9.53
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'examples')
-rw-r--r--examples/spots.ps79
-rw-r--r--examples/transparency_example.ps8
2 files changed, 83 insertions, 4 deletions
diff --git a/examples/spots.ps b/examples/spots.ps
new file mode 100644
index 00000000..bef30004
--- /dev/null
+++ b/examples/spots.ps
@@ -0,0 +1,79 @@
+%!
+
+% Cyan
+1 0 0 0 setcmykcolor
+0 0 50 50 rectfill
+.5 0 0 0 setcmykcolor
+0 50 50 50 rectfill
+
+% Magenta
+0 1 0 0 setcmykcolor
+50 0 50 50 rectfill
+0 0.5 0 0 setcmykcolor
+50 50 50 50 rectfill
+
+% Yellow
+0 0 1 0 setcmykcolor
+100 0 50 50 rectfill
+0 0 .5 0 setcmykcolor
+100 0 50 50 rectfill
+
+% Black
+0 0 0 1 setcmykcolor
+150 0 50 50 rectfill
+0 0 0 .5 setcmykcolor
+150 50 50 50 rectfill
+
+% MuddyCyan
+[/Separation
+ (MuddyCyan)
+ /DeviceCMYK
+ {
+ 0.1 0.1 0
+ }
+] setcolorspace
+1 setcolor
+0 100 50 50 rectfill
+0.5 setcolor
+0 150 50 5000 rectfill
+
+% MuddyMagenta
+[/Separation
+ (MuddyMagenta)
+ /DeviceCMYK
+ {
+ 0.1 exch 0.1 0
+ }
+] setcolorspace
+1 setcolor
+50 100 50 50 rectfill
+0.5 setcolor
+50 150 50 5000 rectfill
+
+% MuddyYellow
+[/Separation
+ (MuddyYellow)
+ /DeviceCMYK
+ {
+ 0.1 exch 0.1 exch 0
+ }
+] setcolorspace
+1 setcolor
+100 100 50 50 rectfill
+0.5 setcolor
+100 150 50 5000 rectfill
+
+% MuddyBlack
+[/Separation
+ (MuddyBlack)
+ /DeviceCMYK
+ {
+ 0.1 exch 0.1 exch 0.1 exch
+ }
+] setcolorspace
+1 setcolor
+150 100 50 50 rectfill
+0.5 setcolor
+150 150 50 5000 rectfill
+
+showpage
diff --git a/examples/transparency_example.ps b/examples/transparency_example.ps
index 81200497..8609cf9e 100644
--- a/examples/transparency_example.ps
+++ b/examples/transparency_example.ps
@@ -5,13 +5,13 @@
systemdict /.setalphaisshape known not
{
- (\n\n%%%% WARNING: Transparency operations ignored - probably due to using -dSAFER\n\n) print flush
+ (\n\n%%%% WARNING: Transparency operations ignored - need to include -dALLOWPSTRANSPARENCY\n\n) print flush
/.pushpdf14devicefilter {pop} bind def
/.begintransparencygroup {pop pop pop pop pop} bind def
/.endtransparencygroup {} bind def
/.poppdf14devicefilter {} bind def
- /.setopacityalpha {pop} bind def
- /.setshapealpha {pop} bind def
+ /.setfillconstantalpha {pop} bind def
+ /.setstrokeconstantalpha {pop} bind def
/PageUsesTransparency false def
} if
@@ -37,7 +37,7 @@ systemdict /.setalphaisshape known not
<< >> clippath pathbbox newpath .begintransparencygroup
- .5 .setopacityalpha 1 .setshapealpha
+ .5 .setfillconstantalpha
.9 .3 .1 setrgbcolor