Edd Biddulph

Twitter | CV

Experiments

June 2015
50 Trapeziums

At the end of 2013 I had an idea to create some pictures with the constraint that I can use no more than 50 coloured trapeziums. I wrote a custom program to create the pictures so that I could ensure that I would stay within the limit. All the pictures I created are shown below, along with the text file descriptions of the shapes used. The text file format is described thus:

50 lines of the following format, one for each layer:

i j r g b

where
i = index of first trapezium + 1, or zero if the layer is empty
j = index of last trapezium + 1, or zero if the layer is empty
r, g, b = red, gree, blue channel multipliers

Then fifty 6-line chunks with the following format for each chunk, one chunk per trapezium:

l p n r g b x0 y0 x1 y1 x2 y2 x3 y3

where
l = index of the layer which holds this trapezium + 1, or zero if it's not in any layer
p = index of the previous trapezium in the same layer + 1, or zero if this is the first trapezium
n = index of the next trapezium in the same layer + 1, or zero if this is the last trapezium
r, g, b = the colour of the trapezium before the relevant layer's filter is applied
xN, yN = the coordinates of the trapezium's corners (note that my editor enforces parallel top and bottom sides, but the file format does not)