From 9577d5bc1a9c91a54d390fe888ee56d393e91417 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 27 Jul 2023 18:02:16 +0200 Subject: A3: Concurrency exercise.. --- a3/string.eps | 279 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 279 insertions(+) create mode 100644 a3/string.eps (limited to 'a3/string.eps') diff --git a/a3/string.eps b/a3/string.eps new file mode 100644 index 0000000..f9f5aa0 --- /dev/null +++ b/a3/string.eps @@ -0,0 +1,279 @@ +%!PS-Adobe-3.0 EPSF-3.0 +%%Title: gl2ps_renderer figure +%%Creator: GL2PS 1.4.2, (C) 1999-2020 C. Geuzaine +%%For: Octave +%%CreationDate: Thu Jul 27 17:29:03 2023 +%%LanguageLevel: 3 +%%DocumentData: Clean7Bit +%%Pages: 1 +%%BoundingBox: 0 0 576 432 +%%EndComments +%%BeginProlog +/gl2psdict 64 dict def gl2psdict begin +/tryPS3shading false def % set to false to force subdivision +/rThreshold 0.064 def % red component subdivision threshold +/gThreshold 0.034 def % green component subdivision threshold +/bThreshold 0.1 def % blue component subdivision threshold +/BD { bind def } bind def +/C { setrgbcolor } BD +/G { 0.082 mul exch 0.6094 mul add exch 0.3086 mul add neg 1.0 add setgray } BD +/W { setlinewidth } BD +/LC { setlinecap } BD +/LJ { setlinejoin } BD +/FC { findfont exch /SH exch def SH scalefont setfont } BD +/SW { dup stringwidth pop } BD +/S { FC moveto show } BD +/SBC{ FC moveto SW -2 div 0 rmoveto show } BD +/SBR{ FC moveto SW neg 0 rmoveto show } BD +/SCL{ FC moveto 0 SH -2 div rmoveto show } BD +/SCC{ FC moveto SW -2 div SH -2 div rmoveto show } BD +/SCR{ FC moveto SW neg SH -2 div rmoveto show } BD +/STL{ FC moveto 0 SH neg rmoveto show } BD +/STC{ FC moveto SW -2 div SH neg rmoveto show } BD +/STR{ FC moveto SW neg SH neg rmoveto show } BD +/FCT { FC translate 0 0 } BD +/SR { gsave FCT moveto rotate show grestore } BD +/SRX { gsave FCT moveto rotate xshow grestore } BD +/SBCR{ gsave FCT moveto rotate SW -2 div 0 rmoveto show grestore } BD +/SBRR{ gsave FCT moveto rotate SW neg 0 rmoveto show grestore } BD +/SCLR{ gsave FCT moveto rotate 0 SH -2 div rmoveto show grestore} BD +/SCCR{ gsave FCT moveto rotate SW -2 div SH -2 div rmoveto show grestore} BD +/SCRR{ gsave FCT moveto rotate SW neg SH -2 div rmoveto show grestore} BD +/STLR{ gsave FCT moveto rotate 0 SH neg rmoveto show grestore } BD +/STCR{ gsave FCT moveto rotate SW -2 div SH neg rmoveto show grestore } BD +/STRR{ gsave FCT moveto rotate SW neg SH neg rmoveto show grestore } BD +/P { newpath 0.0 360.0 arc closepath fill } BD +/LS { newpath moveto } BD +/L { lineto } BD +/LE { lineto stroke } BD +/T { newpath moveto lineto lineto closepath fill } BD +/STshfill { + /b1 exch def /g1 exch def /r1 exch def /y1 exch def /x1 exch def + /b2 exch def /g2 exch def /r2 exch def /y2 exch def /x2 exch def + /b3 exch def /g3 exch def /r3 exch def /y3 exch def /x3 exch def + gsave << /ShadingType 4 /ColorSpace [/DeviceRGB] + /DataSource [ 0 x1 y1 r1 g1 b1 0 x2 y2 r2 g2 b2 0 x3 y3 r3 g3 b3 ] >> + shfill grestore } BD +/Tm { 3 -1 roll 8 -1 roll 13 -1 roll add add 3 div + 3 -1 roll 7 -1 roll 11 -1 roll add add 3 div + 3 -1 roll 6 -1 roll 9 -1 roll add add 3 div C T } BD +/STsplit { + 4 index 15 index add 0.5 mul + 4 index 15 index add 0.5 mul + 4 index 15 index add 0.5 mul + 4 index 15 index add 0.5 mul + 4 index 15 index add 0.5 mul + 5 copy 5 copy 25 15 roll + 9 index 30 index add 0.5 mul + 9 index 30 index add 0.5 mul + 9 index 30 index add 0.5 mul + 9 index 30 index add 0.5 mul + 9 index 30 index add 0.5 mul + 5 copy 5 copy 35 5 roll 25 5 roll 15 5 roll + 4 index 10 index add 0.5 mul + 4 index 10 index add 0.5 mul + 4 index 10 index add 0.5 mul + 4 index 10 index add 0.5 mul + 4 index 10 index add 0.5 mul + 5 copy 5 copy 40 5 roll 25 5 roll 15 5 roll 25 5 roll + STnoshfill STnoshfill STnoshfill STnoshfill } BD +/STnoshfill { + 2 index 8 index sub abs rThreshold gt + { STsplit } + { 1 index 7 index sub abs gThreshold gt + { STsplit } + { dup 6 index sub abs bThreshold gt + { STsplit } + { 2 index 13 index sub abs rThreshold gt + { STsplit } + { 1 index 12 index sub abs gThreshold gt + { STsplit } + { dup 11 index sub abs bThreshold gt + { STsplit } + { 7 index 13 index sub abs rThreshold gt + { STsplit } + { 6 index 12 index sub abs gThreshold gt + { STsplit } + { 5 index 11 index sub abs bThreshold gt + { STsplit } + { Tm } + ifelse } + ifelse } + ifelse } + ifelse } + ifelse } + ifelse } + ifelse } + ifelse } + ifelse } BD +tryPS3shading +{ /shfill where + { /ST { STshfill } BD } + { /ST { STnoshfill } BD } + ifelse } +{ /ST { STnoshfill } BD } +ifelse +end +%%EndProlog +%%BeginSetup +/DeviceRGB setcolorspace +gl2psdict begin +%%EndSetup +%%Page: 1 1 +%%BeginPageSetup +%%EndPageSetup +mark +gsave +1.0 1.0 scale +1 1 1 C +newpath 0 0 moveto 576 0 lineto 576 432 lineto 0 432 lineto +closepath fill +gsave +1.0 1.0 scale +1 1 1 C +newpath 0 0 moveto 576 0 lineto 576 432 lineto 0 432 lineto +closepath fill +newpath 0 0 moveto 576 0 lineto 576 432 lineto 0 432 lineto +closepath clip +1 1 1 C +74.88 399.6 521.28 47.52 74.88 47.52 T +74.88 399.6 521.28 399.6 521.28 47.52 T +0.5 W +0.15 0.15 0.15 C +74.88 47.52 LS +74.88 51.985 LE +74.88 399.6 LS +74.88 395.135 LE +186.48 47.52 LS +186.48 51.985 LE +186.48 399.6 LS +186.48 395.135 LE +298.08 47.52 LS +298.08 51.985 LE +298.08 399.6 LS +298.08 395.135 LE +409.68 47.52 LS +409.68 51.985 LE +409.68 399.6 LS +409.68 395.135 LE +521.28 47.52 LS +521.28 51.985 LE +521.28 399.6 LS +521.28 395.135 LE +gsave +0.14902 0.14902 0.14902 C +(0) [10] 0 71.88 32.0183 10 /Helvetica SRX +grestore + +gsave +0.14902 0.14902 0.14902 C +(5) [10] 0 183.48 32.0183 10 /Helvetica SRX +grestore + +gsave +0.14902 0.14902 0.14902 C +(10) [6 10] 0 292.08 32.0183 10 /Helvetica SRX +grestore + +gsave +0.14902 0.14902 0.14902 C +(15) [6 10] 0 403.68 32.0183 10 /Helvetica SRX +grestore + +gsave +0.14902 0.14902 0.14902 C +(20) [6 10] 0 515.28 32.0183 10 /Helvetica SRX +grestore + +74.88 47.52 LS +79.348 47.52 LE +521.28 47.52 LS +516.812 47.52 LE +74.88 117.936 LS +79.348 117.936 LE +521.28 117.936 LS +516.812 117.936 LE +74.88 188.352 LS +79.348 188.352 LE +521.28 188.352 LS +516.812 188.352 LE +74.88 258.768 LS +79.348 258.768 LE +521.28 258.768 LS +516.812 258.768 LE +74.88 329.184 LS +79.348 329.184 LE +521.28 329.184 LS +516.812 329.184 LE +74.88 399.6 LS +79.348 399.6 LE +521.28 399.6 LS +516.812 399.6 LE +gsave +0.14902 0.14902 0.14902 C +(50) [6 10] 0 57.8755 43.52 10 /Helvetica SRX +grestore + +gsave +0.14902 0.14902 0.14902 C +(100) [6 6 10] 0 51.8755 113.936 10 /Helvetica SRX +grestore + +gsave +0.14902 0.14902 0.14902 C +(150) [6 6 10] 0 51.8755 184.352 10 /Helvetica SRX +grestore + +gsave +0.14902 0.14902 0.14902 C +(200) [6 6 10] 0 51.8755 254.768 10 /Helvetica SRX +grestore + +gsave +0.14902 0.14902 0.14902 C +(250) [6 6 10] 0 51.8755 325.184 10 /Helvetica SRX +grestore + +gsave +0.14902 0.14902 0.14902 C +(300) [6 6 10] 0 51.8755 395.6 10 /Helvetica SRX +grestore + +2 LC +[16 0] 0 setdash +74.88 47.52 LS +521.28 47.52 LE +74.88 399.6 LS +521.28 399.6 LE +74.88 47.52 LS +74.88 399.6 LE +521.28 47.52 LS +521.28 399.6 LE +0 LC +1 LJ +[] 0 setdash +0.34524 0.34524 0.34524 C +97.2 346.094 LS +119.52 168.943 L +141.84 106.006 L +164.16 86.7582 L +186.48 84.4471 L +208.8 67.0992 L +231.12 54.9937 L +253.44 50.2669 L +275.76 60.4543 L +298.08 59.4455 L +320.4 61.9337 L +342.72 60.7962 L +365.04 57.4596 L +387.36 54.4847 L +409.68 54.1613 L +432 48.6819 LE +grestore +grestore +showpage +cleartomark +%%PageTrailer +%%Trailer +end +%%EOF -- cgit v1.2.3