7 added 3 characters in body
source | link

PostScript+Ghostscript 137+6=143 (binary), 209+6=215 (ASCII)

PostScript+Ghostscript 137 + 6 = 143 (binary), 209 + 6 = 215 bytes

PostScript+Ghostscript 137+6=143 (binary), 209+6=215 (ASCII)

PostScript+Ghostscript 137 + 6 = 143 (binary), 209 + 6 = 215 bytes

6 Corrected miscalculated point and dropped tenth digit
source | link

PostScript+Ghostscript 137+6=143 (binary), 209+6=215 (ASCII)

Fully golfed version with binary tokens:

$ hexdump -C euro_golfed.ps 
00000000  68 20 31 32 20 92 36 92  38 92 8b 37 2e 35 20 36  |h 12 .6.8..7.5 6|
00000010  92 ad 35 20 36 0a 31 2e  38 20 2d 31 2e 35 0a 33  |..5 6.1.8 -1.5.3|
00000020  2e 38 20 2d 33 2e 32 0a  33 2e 38 20 2d 36 0a 2d  |.8 -3.2.3.8 -6.-|
00000030  39 2e 34 20 2d 36 0a 2d  37 2e 31 20 2d 2e 35 0a  |9.4 -6.-7.1 -.5.|
00000040  2d 37 2e 35 20 2e 35 0a  2d 35 2e 32 20 36 92 6b  |-7.5 .5.-5.2 6.k|
00000050  37 7b 92 63 7d 92 83 35  2e 35 92 14 30 92 6f 2d  |7{.c}..5.5..0.o-|
00000060  38 20 2d 31 0a 2d 38 20  31 92 6b 32 7b 31 35 20  |8 -1.-8 1.k2{15 |
00000070  30 92 85 92 6b 7d 92 83  30 20 30 20 35 2e 35 20  |0...k}..0 0 5.5 |
00000080  30 20 33 36 30 92 05 92  a7                       |0 360....|
00000089

Download hand coded binary file

ASCII version:

h 12 div dup scale
7.5 6 translate
5 6
1.8 -1.5
3.8 -3.2
3.8 -6
-9.4 -6
-7.1 -.5
-7.5 .5
-5.2 6
moveto
7{lineto}repeat
clip newpath
5.5 0
-8 -1
-8 1
moveto
2{15 0 rlineto moveto}repeat
0 0 5.5 0 360 arc
stroke

Save as euro.ps and run with Ghostscript like

gs -dh=80 euro.ps

Euro sign, 80 points, rendered by GhostscriptEuro sign, 80 points, rendered by Ghostscript

gs -dh=20 euro.ps

Euro sign, 20 points, rendered by GhostscriptEuro sign, 20 points, rendered by Ghostscript

As there is no such thing as a pixel in PostScript, that height is interpreted in points instead. I calculated +6 for the switch on the command line.

PostScript+Ghostscript 137+6=143 (binary), 209+6=215 (ASCII)

Fully golfed version with binary tokens:

$ hexdump -C euro_golfed.ps 
00000000  68 20 31 32 20 92 36 92  38 92 8b 37 2e 35 20 36  |h 12 .6.8..7.5 6|
00000010  92 ad 35 20 36 0a 31 2e  38 20 2d 31 2e 35 0a 33  |..5 6.1.8 -1.5.3|
00000020  2e 38 20 2d 33 2e 32 0a  33 2e 38 20 2d 36 0a 2d  |.8 -3.2.3.8 -6.-|
00000030  39 2e 34 20 2d 36 0a 2d  37 2e 31 20 2d 2e 35 0a  |9.4 -6.-7.1 -.5.|
00000040  2d 37 2e 35 20 2e 35 0a  2d 35 2e 32 20 36 92 6b  |-7.5 .5.-5.2 6.k|
00000050  37 7b 92 63 7d 92 83 35  2e 35 92 14 30 92 6f 2d  |7{.c}..5.5..0.o-|
00000060  38 20 2d 31 0a 2d 38 20  31 92 6b 32 7b 31 35 20  |8 -1.-8 1.k2{15 |
00000070  30 92 85 92 6b 7d 92 83  30 20 30 20 35 2e 35 20  |0...k}..0 0 5.5 |
00000080  30 20 33 36 30 92 05 92  a7                       |0 360....|
00000089

Download hand coded binary file

ASCII version:

h 12 div dup scale
7.5 6 translate
5 6
1.8 -1.5
3.8 -3.2
3.8 -6
-9.4 -6
-7.1 -.5
-7.5 .5
-5.2 6
moveto
7{lineto}repeat
clip newpath
5.5 0
-8 -1
-8 1
moveto
2{15 0 rlineto moveto}repeat
0 0 5.5 0 360 arc
stroke

Save as euro.ps and run with Ghostscript like

gs -dh=80 euro.ps

Euro sign, 80 points, rendered by Ghostscript

gs -dh=20 euro.ps

Euro sign, 20 points, rendered by Ghostscript

As there is no such thing as a pixel in PostScript, that height is interpreted in points instead. I calculated +6 for the switch on the command line.

PostScript+Ghostscript 137+6=143 (binary), 209+6=215 (ASCII)

Fully golfed version with binary tokens:

$ hexdump -C euro_golfed.ps 
00000000  68 20 31 32 20 92 36 92  38 92 8b 37 2e 35 20 36  |h 12 .6.8..7.5 6|
00000010  92 ad 35 20 36 0a 31 2e  38 20 2d 31 2e 35 0a 33  |..5 6.1.8 -1.5.3|
00000020  2e 38 20 2d 33 2e 32 0a  33 2e 38 20 2d 36 0a 2d  |.8 -3.2.3.8 -6.-|
00000030  39 2e 34 20 2d 36 0a 2d  37 2e 31 20 2d 2e 35 0a  |9.4 -6.-7.1 -.5.|
00000040  2d 37 2e 35 20 2e 35 0a  2d 35 2e 32 20 36 92 6b  |-7.5 .5.-5.2 6.k|
00000050  37 7b 92 63 7d 92 83 35  2e 35 92 14 30 92 6f 2d  |7{.c}..5.5..0.o-|
00000060  38 20 2d 31 0a 2d 38 20  31 92 6b 32 7b 31 35 20  |8 -1.-8 1.k2{15 |
00000070  30 92 85 92 6b 7d 92 83  30 20 30 20 35 2e 35 20  |0...k}..0 0 5.5 |
00000080  30 20 33 36 30 92 05 92  a7                       |0 360....|
00000089

Download hand coded binary file

ASCII version:

h 12 div dup scale
7.5 6 translate
5 6
1.8 -1.5
3.8 -3.2
3.8 -6
-9.4 -6
-7.1 -.5
-7.5 .5
-5.2 6
moveto
7{lineto}repeat
clip newpath
5.5 0
-8 -1
-8 1
moveto
2{15 0 rlineto moveto}repeat
0 0 5.5 0 360 arc
stroke

Save as euro.ps and run with Ghostscript like

gs -dh=80 euro.ps

Euro sign, 80 points, rendered by Ghostscript

gs -dh=20 euro.ps

Euro sign, 20 points, rendered by Ghostscript

As there is no such thing as a pixel in PostScript, that height is interpreted in points instead. I calculated +6 for the switch on the command line.

5 Corrected miscalculated point and dropped tenth digit
source | link

PostScript+Ghostscript 135+6=141137+6=143 (binary), 207+6=213209+6=215 (ASCII)

$ hexdump -C euro3euro_golfed.ps 
00000000  68 20 31 32 20 92 36 92  38 92 8b 37 2e 35 20 36  |h 12 .6.8..7.5 6|
00000010  92 ad 35 20 36 0a 3231 2e  3438 20 2d 31 2e 35 0a 33  |..5 6.21.48 -1.5.3|
00000020  2e 38 20 2d 33 2e 32 0a  33 2e 38 20 2d 36 0a 2d  |.8 -3.2.3.8 -6.-|
00000030  39 2e 34 20 2d 36 0a 2d  37 2e 31 20 2d 2e 35 0a 2d 37  |9.4 -6.-7.1 -.5.-7||
00000040  2d 37 2e 35 20 2e 35 0a  2d 35  2e 32 20 36 92 6b 37 7b  |-7.5 .5.-5.2 6.k7{|k|
00000050  37 7b 92 63 7d 92 83 35  2e 35  92 14 30 92 6f 2d 38 20  ||7{.c}..5.5..0.o-8 |
00000060  38 20 2d 31 0a 2d 38 20  31 92  6b 32 7b 31 35 20 30 92 |8 |-1.-8 1.k2{15 0.|
00000070  30 92 85 92 6b 7d 92 83  30 20  30 20 35 2e 35 20 30 20  ||0...k}..0 0 5.5 0 |
00000080  30 20 33 36 30 92 05 92 a7      a7                       |0 |360360....|
0000008700000089
h 12 div dup scale
7.5 6 translate
5 6
21.48 -1.5
3.8 -3.2
3.8 -6
-9.4 -6
-7.1 -.5
-7.5 .5
-5.2 6
moveto
7{lineto}repeat
clip newpath
5.5 0
-8 -1
-8 1
moveto
2{15 0 rlineto moveto}repeat
0 0 5.5 0 360 arc
stroke

PostScript+Ghostscript 135+6=141 (binary), 207+6=213 (ASCII)

$ hexdump -C euro3.ps 
00000000  68 20 31 32 20 92 36 92  38 92 8b 37 2e 35 20 36  |h 12 .6.8..7.5 6|
00000010  92 ad 35 20 36 0a 32 2e  34 20 2d 31 2e 35 0a 33  |..5 6.2.4 -1.5.3|
00000020  2e 38 20 2d 33 2e 32 0a  33 2e 38 20 2d 36 0a 2d  |.8 -3.2.3.8 -6.-|
00000030  39 2e 34 20 2d 36 0a 2d  37 20 2d 2e 35 0a 2d 37  |9.4 -6.-7 -.5.-7|
00000040  2e 35 20 2e 35 0a 2d 35  2e 32 20 36 92 6b 37 7b  |.5 .5.-5.2 6.k7{|
00000050  92 63 7d 92 83 35 2e 35  92 14 30 92 6f 2d 38 20  |.c}..5.5..0.o-8 |
00000060  2d 31 0a 2d 38 20 31 92  6b 32 7b 31 35 20 30 92  |-1.-8 1.k2{15 0.|
00000070  85 92 6b 7d 92 83 30 20  30 20 35 2e 35 20 30 20  |..k}..0 0 5.5 0 |
00000080  33 36 30 92 05 92 a7                              |360....|
00000087
h 12 div dup scale
7.5 6 translate
5 6
2.4 -1.5
3.8 -3.2
3.8 -6
-9.4 -6
-7 -.5
-7.5 .5
-5.2 6
moveto
7{lineto}repeat
clip newpath
5.5 0
-8 -1
-8 1
moveto
2{15 0 rlineto moveto}repeat
0 0 5.5 0 360 arc
stroke

PostScript+Ghostscript 137+6=143 (binary), 209+6=215 (ASCII)

$ hexdump -C euro_golfed.ps 
00000000  68 20 31 32 20 92 36 92  38 92 8b 37 2e 35 20 36  |h 12 .6.8..7.5 6|
00000010  92 ad 35 20 36 0a 31 2e  38 20 2d 31 2e 35 0a 33  |..5 6.1.8 -1.5.3|
00000020  2e 38 20 2d 33 2e 32 0a  33 2e 38 20 2d 36 0a 2d  |.8 -3.2.3.8 -6.-|
00000030  39 2e 34 20 2d 36 0a 2d  37 2e 31 20 2d 2e 35 0a  |9.4 -6.-7.1 -.5.|
00000040  2d 37 2e 35 20 2e 35 0a  2d 35 2e 32 20 36 92 6b  |-7.5 .5.-5.2 6.k|
00000050  37 7b 92 63 7d 92 83 35  2e 35 92 14 30 92 6f 2d  |7{.c}..5.5..0.o-|
00000060  38 20 2d 31 0a 2d 38 20  31 92 6b 32 7b 31 35 20  |8 -1.-8 1.k2{15 |
00000070  30 92 85 92 6b 7d 92 83  30 20 30 20 35 2e 35 20  |0...k}..0 0 5.5 |
00000080  30 20 33 36 30 92 05 92  a7                       |0 360....|
00000089
h 12 div dup scale
7.5 6 translate
5 6
1.8 -1.5
3.8 -3.2
3.8 -6
-9.4 -6
-7.1 -.5
-7.5 .5
-5.2 6
moveto
7{lineto}repeat
clip newpath
5.5 0
-8 -1
-8 1
moveto
2{15 0 rlineto moveto}repeat
0 0 5.5 0 360 arc
stroke
4 Added binary version
source | link
3 deleted 20 characters in body
source | link
2 Added another size
source | link
1
source | link