From 27d19f2ec8fbf694e5d259cd0233364996bdc61d Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Sat, 18 Jul 2015 19:11:39 +0100 Subject: [PATCH] include the code used to gen these gfx --- skins/base/img/p/piechart.pde | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 skins/base/img/p/piechart.pde diff --git a/skins/base/img/p/piechart.pde b/skins/base/img/p/piechart.pde new file mode 100644 index 000000000..44fe62837 --- /dev/null +++ b/skins/base/img/p/piechart.pde @@ -0,0 +1,19 @@ +// a trivial processing.org snippet to generate these +// using java2d (ugh). Peity and JS might have been +// a better idea. Or SVG. + +size(48, 48); +g = createGraphics(48, 48, JAVA2D); + +for (int i = 0; i <= 20; i++) { + g.beginDraw(); + g.background(0.0, 0.0); + g.smooth(); + g.strokeCap(SQUARE); + g.strokeWeight(3); + g.stroke(0x80, 0xcf, 0xf4, 255.0); + g.fill(0.0, 0.0); + g.arc(24, 24, 43, 43, -PI/2, -PI/2 + (i*2*PI/20.0)); + g.save("p" + i + ".png"); + g.endDraw(); +}