A Month's Report, Its Charts Drawn in Curves

The monthly report of a print shop says where the hours went, how far into the year the work has come, and how orders moved week by week. Those figures usually arrive as pictures pasted onto the page: fine on a screen, blurred the moment somebody prints it or looks closer.

Here the document draws them itself. A page describes straight segments and curves, so every shape has to be named in those terms: a centre and a radius, two angles, three points to pass through. Working that out by hand is a morning of trigonometry for each chart, and it is exactly the morning nobody has, which is why the pictures get pasted in instead.

What This Example Shows

  • A pie whose every slice is one arc shut by two straight sides.
  • A ring gauge, a card with eased corners, a line whose turns are rounded.
  • Traced by the reading software, sharp at every size, for the weight of a sentence.

The Source Code, Complete

Nothing is left out and nothing is simplified: this is the program exactly as it runs, for the developer who uses this library. The third is the description itself: a plain list of what the page has to say, which is what the service is sent.

Read the Rust source Read the Python source Read the JSON source

The Document Itself

Open the document in English Open the document in French Open the document in German Open the document in Spanish Open the document in Italian Open the document in Portuguese

A Month's Report, Its Charts Drawn in Curves, first page

The Same Document in Other Languages

This document weighs 19.0 kB

Examples Near This One

Cutting out What You Draw

The same area of stripes shown through two windows: a plain disc, and a ring whose middle is left bare.

Transparency and Blend Modes

Half-transparent fills that overlap and mix, one orange square laid over a blue bar in four different ways of mixing colours, and a line of overlapping letters painted two ways.

Overlaps Mixed in Linear Light

A page that asks for its half-transparent colours to be mixed in linear light: two pairs of overlapping discs, each beside the colour its overlap should take and the one it takes when the request is ignored.

Gradients in a Line, in a Circle, and Read from a Function

Five panels: a header that fades out, the same fade on the diagonal, a glow carried past its own circle so the corners fill, a blend that goes by way of a third colour, and a checkerboard whose colour is worked out from where each point stands, redder to the right and greener towards the top.

Text and Shapes Filled with a Gradient

A gradient used as the colour something is filled with: a headline whose letters are windows onto a blend of three colours, a panel filled with a circular one that lets the page show through, and a band whose blend is stood upright and whose border is painted with the circular one.

Four Kinds of Mesh, Every Corner Its Own Colour

Six triangles round a centre they share, their edges stroked over the paint; a lattice of points in the four printing inks; a patch whose four sides are curves; and the same patch pulled about by four points inside it.

Every example, by subject