Skip to content

Commit 27d19f2

Browse files
committed
include the code used to gen these gfx
1 parent ea8737d commit 27d19f2

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

‎skins/base/img/p/piechart.pde‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// a trivial processing.org snippet to generate these
2+
// using java2d (ugh). Peity and JS might have been
3+
// a better idea. Or SVG.
4+
5+
size(48, 48);
6+
g = createGraphics(48, 48, JAVA2D);
7+
8+
for (int i = 0; i <= 20; i++) {
9+
g.beginDraw();
10+
g.background(0.0, 0.0);
11+
g.smooth();
12+
g.strokeCap(SQUARE);
13+
g.strokeWeight(3);
14+
g.stroke(0x80, 0xcf, 0xf4, 255.0);
15+
g.fill(0.0, 0.0);
16+
g.arc(24, 24, 43, 43, -PI/2, -PI/2 + (i*2*PI/20.0));
17+
g.save("p" + i + ".png");
18+
g.endDraw();
19+
}

0 commit comments

Comments
 (0)