Skip to content

Commit cdee27f

Browse files
committed
Adds missing files Kitchen_Rh_08.ps, .pdf
1 parent 36b2aba commit cdee27f

File tree

4 files changed

+17
-11
lines changed

4 files changed

+17
-11
lines changed

postscript_pdf/Kitchen_Rh_08.pdf

32.9 KB
Binary file not shown.

postscript_pdf/Kitchen_Rh_08.ps

3.37 MB
Binary file not shown.

text/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ The [author](https://jdawiseman.com/author.html) has a very strong sense of shap
111111
Indeed, this might be why I am so fond the Penrose tiling.
112112

113113
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.
115115

116116
Hence end users are strongly encouraged not to be shy about reaching into the output to change colours.
117117
The two [distillable PostScript outputs](postscript_distillable.md), and the [two types of SVG](svg.md), are deliberately friendly to those making changes.

text/postscript_distillable.md

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ It is a delightful simple clean text-based user-alterable [Turing-complete](http
8888
But, even in the most flattering light, PostScript shows its age.
8989

9090
[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.)
9292

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).
9595
For these purposes, any would be satisfactory (but Adobe is expensive).
9696

9797

@@ -120,12 +120,18 @@ Both have:
120120
```
121121

122122
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&nbsp;8&frac12;&Prime;&#8239;&times;&#8239;11&Prime; use <code>/PageWidth&nbsp;8.5&nbsp;72&nbsp;mul&nbsp;def</code> and <code>/PageHeight&nbsp;11&nbsp;72&nbsp;mul&nbsp;def</code> (&because;&nbsp;72pt&nbsp;&equiv;&nbsp;1&Prime;), and likewise for other inch-specified page sizes.
125-
(*NB*: [1&nbsp;inch is defined](https://en.wikipedia.org/wiki/International_yard_and_pound) to be exactly 25.4mm; [1&nbsp;DTP&nbsp;point is defined](https://en.wikipedia.org/wiki/Point_(typography)) to be 1&frasl;72 of an inch; &DoubleLongRightArrow; 360pt&nbsp;=&nbsp;127mm &Longleftrightarrow; 1mm&nbsp;=&nbsp;360&frasl;127pt.)
126-
127-
128-
The `/Margin 18 def` says 18pt =&nbsp;18&frasl;72&nbsp;inch =&nbsp;&frac13;&Prime; &asymp;&nbsp;8.5mm.
123+
[ISO&nbsp;216 paper sizes](https://en.wikipedia.org/wiki/ISO_216):&nbsp; A4 is 297&#8239;mm&#8239;&times;&#8239;210&#8239;mm;&nbsp;
124+
A3 is 420&#8239;mm&#8239;&times;&#8239;297&#8239;mm;&nbsp;
125+
A2 is 594&#8239;mm&#8239;&times;&#8239;420&#8239;mm.&nbsp;
126+
For the US size&nbsp;8&frac12;&Prime;&#8239;&times;&#8239;11&Prime; use <code>/PageWidth&nbsp;8.5&nbsp;72&nbsp;mul&nbsp;def</code> and <code>/PageHeight&nbsp;11&nbsp;72&nbsp;mul&nbsp;def</code> (&because;&nbsp;72&#8239;pt&nbsp;&equiv;&nbsp;1&Prime;), and likewise for other inch-specified page sizes.
127+
(*NB*: [1&nbsp;inch is defined](https://en.wikipedia.org/wiki/International_yard_and_pound) to be exactly 25.4&#8239;mm;&nbsp;
128+
[1&nbsp;DTP&nbsp;point is defined](https://en.wikipedia.org/wiki/Point_(typography)) to be 1&frasl;72 of an inch;&nbsp;
129+
&Longleftrightarrow;&nbsp; 1&#8239;pt&nbsp;=&nbsp;127&frasl;360&#8239;mm&nbsp;
130+
&Longleftrightarrow;&nbsp; 1&#8239;pt&nbsp;=&nbsp;0.35277&#773;&#8239;mm&nbsp;
131+
&DoubleLongRightArrow;&nbsp; 1&#8239;mm&nbsp;&asymp;&nbsp;2.8346&#8239;pt.)
132+
133+
134+
The <code>/Margin&nbsp;18&nbsp;def</code> says 18&#8239;pt =&nbsp;18&frasl;72&nbsp;inch =&nbsp;&frac13;&Prime; &asymp;&nbsp;8.5&#8239;mm.
129135
If not liked, change.
130136

131137
In the arcs file, `/LongestPathToBeFilled 215 def` is as explained in the [SVG&nbsp;documentation](svg.md).
@@ -135,7 +141,7 @@ The `ScaleFactor` is derived from values computed from the `ToPaint_XMin` etc, b
135141
The rhombus output specifies the routine `PaintByRhombus`, which takes parameters off the stack, and then paints the parameter-specified rhombus.
136142
It encodes conditions making the choice of which colour, and then a `setrgbcolor` or a `setgray`.
137143
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&rsquo;t trust my colours: be not shy about recolouration.
144+
Really, don&rsquo;t love my colours: be not shy about recolouration.
139145

140146
The rhombus code also has multiple sections of commented-out code that were used in debugging, with nearby explanatory comments.
141147
If useful to you, play and experiment.

0 commit comments

Comments
 (0)