Skip to content

Commit

Permalink
Avatars and generation code
Browse files Browse the repository at this point in the history
  • Loading branch information
lepisma committed May 18, 2017
1 parent 50560f6 commit ca0c5ac
Show file tree
Hide file tree
Showing 29 changed files with 55 additions and 0 deletions.
42 changes: 42 additions & 0 deletions avatar/avatar.pde
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
int size = 5000;

float phi = (1 + sqrt(5)) / 2; // Golden ratio

int padding = parseInt(0.25 * size);
int usize = size - 2 * padding; // Usable size

// Golden ratio cut on usize
int minorSize = parseInt(usize * (phi - 1) / phi);

// Ring of circles init radius
int ringR = parseInt(sqrt(pow(usize, 2) + pow(minorSize, 2)));

// Side circle radius
int sideR = parseInt((pow(usize, 2) + pow(minorSize, 2)) / (2 * minorSize));

void setup() {
// Have to use numbers here
size(5000, 5000);
background(255);
fill(0, 0);
stroke(150);
translate(padding, padding);

// Padding outline
rect(0, 0, usize, usize);

// Rings
int i, diff, dia;
for (i = 0; i < 6; i++) {
diff = parseInt((ringR - minorSize) / 5);
dia = 2 * ringR - i * 2 * diff;
ellipse(usize, 0, dia, dia);
}

// Side circles
ellipse(usize - sideR, 0, 2 * sideR, 2 * sideR);
ellipse(usize, sideR, 2 * sideR, 2 * sideR);

// Save image
save("outline.png");
}
Binary file added avatar/avatar.xcf
Binary file not shown.
Binary file added avatar/avatar256-white.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added avatar/avatar256-white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added avatar/avatar256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added avatar/avatar512-white.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added avatar/avatar512-white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added avatar/avatar512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added avatar/favicons/apple-touch-icon-114x114.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added avatar/favicons/apple-touch-icon-120x120.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added avatar/favicons/apple-touch-icon-144x144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added avatar/favicons/apple-touch-icon-152x152.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added avatar/favicons/apple-touch-icon-57x57.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added avatar/favicons/apple-touch-icon-60x60.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added avatar/favicons/apple-touch-icon-72x72.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added avatar/favicons/apple-touch-icon-76x76.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added avatar/favicons/favicon-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added avatar/favicons/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added avatar/favicons/favicon-196x196.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added avatar/favicons/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added avatar/favicons/favicon-96x96.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added avatar/favicons/favicon.ico
Binary file not shown.
Binary file added avatar/favicons/mstile-144x144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added avatar/favicons/mstile-150x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added avatar/favicons/mstile-310x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added avatar/favicons/mstile-310x310.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added avatar/favicons/mstile-70x70.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions avatar/gimp-fu
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Palette
-------
background: #ddd
lighter gray: #555
dark gray (lower left segment): #333

Processing
----------
Drop shadow: null offsets, 200 radius (on background)

Notes
-----
Favicons use 20% padding value
Binary file added avatar/outline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ca0c5ac

Please sign in to comment.