You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: text/introduction.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -111,7 +111,7 @@ The [author](https://jdawiseman.com/author.html) has a very strong sense of shap
111
111
Indeed, this might be why I am so fond the Penrose tiling.
112
112
113
113
But my sense of colour is much much weaker.
114
-
Indeed, I generally consider design in black-and-white, with colour being added an afterthought.
114
+
Indeed, I generally consider design in black-and-white, with colour being added as an afterthought.
115
115
116
116
Hence end users are strongly encouraged not to be shy about reaching into the output to change colours.
117
117
The two [distillable PostScript outputs](postscript_distillable.md), and the [two types of SVG](svg.md), are deliberately friendly to those making changes.
Copy file name to clipboardExpand all lines: text/postscript_distillable.md
+16-10Lines changed: 16 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,10 +88,10 @@ It is a delightful simple clean text-based user-alterable [Turing-complete](http
88
88
But, even in the most flattering light, PostScript shows its age.
89
89
90
90
[This author](https://jdawiseman.com/author.html) is fond of PostScript, and has done much work in it.
91
-
(Indeed, I maintain and use a [splendid PostScript program](https://github.com/jdaw1/placemat/blob/main/README.md#readme) of a mere 15⅔k lines — perhaps it would be safest not to look.)
91
+
(Indeed, I maintain and use a [splendid PostScript program](https://github.com/jdaw1/placemat/blob/main/README.md#readme) of a mere ≈ 16k lines — perhaps it would be safest not to look.)
92
92
93
-
PostScript is a natural and relatively simple way to generate PDFs from a low-level language such as C: it writes ASCII-text PostScript, which is then converted to PDF.
94
-
That conversion, that ‘distillation’, requires an application, likely to be either [Adobe Distiller](https://en.wikipedia.org/wiki/Adobe_Distiller) or [Ghostscript](https://en.wikipedia.org/wiki/Ghostscript) or an online conversion service such as [ps2pdf.org](https://www.ps2pdf.org/convert.htm).
93
+
PostScript is a natural and relatively simple way to generate PDFs from a low-level language such as C: the C writes ASCII-text PostScript, which is then converted to PDF.
94
+
That conversion, that ‘distillation’, requires an application, likely to be either [Adobe Distiller](https://en.wikipedia.org/wiki/Adobe_Distiller) or [Ghostscript](https://en.wikipedia.org/wiki/Ghostscript) or an online route to Ghostscript such as [ps2pdf.org](https://www.ps2pdf.org/convert.htm).
95
95
For these purposes, any would be satisfactory (but Adobe is expensive).
96
96
97
97
@@ -120,12 +120,18 @@ Both have:
120
120
```
121
121
122
122
The `360 mul 127 div` converts millimetres to the units of PostScript, DTP points.
123
-
A2 is 594mm × 420mm; A3 is 420mm × 297mm; A4 is 297mm × 210mm.
124
-
For US 8½″ × 11″ use <code>/PageWidth 8.5 72 mul def</code> and <code>/PageHeight 11 72 mul def</code> (∵ 72pt ≡ 1″), and likewise for other inch-specified page sizes.
125
-
(*NB*: [1 inch is defined](https://en.wikipedia.org/wiki/International_yard_and_pound) to be exactly 25.4mm; [1 DTP point is defined](https://en.wikipedia.org/wiki/Point_(typography)) to be 1⁄72 of an inch; ⟹ 360pt = 127mm ⟺ 1mm = 360⁄127pt.)
126
-
127
-
128
-
The `/Margin 18 def` says 18pt = 18⁄72 inch = ⅓″≈ 8.5mm.
123
+
[ISO 216 paper sizes](https://en.wikipedia.org/wiki/ISO_216): A4 is 297 mm × 210 mm;
124
+
A3 is 420 mm × 297 mm;
125
+
A2 is 594 mm × 420 mm.
126
+
For the US size 8½″ × 11″ use <code>/PageWidth 8.5 72 mul def</code> and <code>/PageHeight 11 72 mul def</code> (∵ 72 pt ≡ 1″), and likewise for other inch-specified page sizes.
127
+
(*NB*: [1 inch is defined](https://en.wikipedia.org/wiki/International_yard_and_pound) to be exactly 25.4 mm;
128
+
[1 DTP point is defined](https://en.wikipedia.org/wiki/Point_(typography)) to be 1⁄72 of an inch;
The <code>/Margin 18 def</code> says 18 pt = 18⁄72 inch = ⅓″≈ 8.5 mm.
129
135
If not liked, change.
130
136
131
137
In the arcs file, `/LongestPathToBeFilled 215 def` is as explained in the [SVG documentation](svg.md).
@@ -135,7 +141,7 @@ The `ScaleFactor` is derived from values computed from the `ToPaint_XMin` etc, b
135
141
The rhombus output specifies the routine `PaintByRhombus`, which takes parameters off the stack, and then paints the parameter-specified rhombus.
136
142
It encodes conditions making the choice of which colour, and then a `setrgbcolor` or a `setgray`.
137
143
The [author](https://jdawiseman.com/author.html) has strong shape perception but very weak colour perception, so you might well want to change the colours.
138
-
Really, don’t trust my colours: be not shy about recolouration.
144
+
Really, don’t love my colours: be not shy about recolouration.
139
145
140
146
The rhombus code also has multiple sections of commented-out code that were used in debugging, with nearby explanatory comments.
0 commit comments