Grey, screen and printing colours
Swatches in each of the three ways to say a colour — a grey as one number, a screen colour as three, a printing colour as four inks — each captioned with the instruction actually written into the file, and one mid-grey said three ways.
A colour is written the way it was named: a grey as one number, a screen colour as three, a printing colour as four inks. This page shows the three together, and captions each swatch with the instruction it actually put in the file, so what the library writes is never something to take on trust.
The bottom row is the interesting one: one mid-grey said three ways. The same ink on paper, three different sets of numbers in the file. Which of the three a document should use depends on where it is going, not on how it looks on the screen you are reading it on.
What this example shows
- Greyscale, RGB and CMYK swatches on one page.
- Each swatch captioned with the instruction written for it.
- One grey said all three ways, for comparison.
The code, in full
The same document is written twice, once in each language. Both files are shown in full, with the code coloured on the server, and can be copied in one click.
The document itself
The same document is written in each of these languages. Open the one you want to look at.
Open the document in English
Open the document in French
Read the Rust source
Read the Python source