-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2,005 changed files
with
1,416 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
|
||
Looking for 5000 Punks (24px)? | ||
See [We Love Monkes (24×24px) »](https://github.com/ordbase/welovemonkes) <br> | ||
Looking for 21 000 Monkes (28px)? | ||
See [Monke See, Monke Do (28×28px) »](https://github.com/ordbase/monkesee-monkedo) | ||
|
||
|
||
|
||
# Let's Rock (28×28px) | ||
|
||
|
||
|
@@ -8,10 +15,42 @@ Let's generate 1000 rocks (28×28px) in a reference edition. | |
|
||
Find all 1000 reference images one-by-one in 28×28px in [**/i**](i): | ||
|
||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
... | ||
|
||
and in 8x (224×224px) in [**/i@8x**](i@8x): | ||
|
||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
... | ||
|
||
|
||
|
@@ -20,12 +59,28 @@ Find all meta data in the [letsrock.csv](letsrock.csv) tabular dataset e.g. | |
|
||
``` | ||
id, type, accessories, background | ||
0, maxibiz, peakspike / maxibiz lasereyes blue, bitcoin orange | ||
1, black, wildhair / eyes pepe, red | ||
2, default, cap subway / eyes blend, default | ||
3, albino, peakspike purple, dollar pattern | ||
4, brown, mohawk red / lasereyes gold, blue | ||
5, demon, peakspike red / eyes big, euro pattern | ||
6, golden, eyes blend, yellow | ||
7, gray, eyes zombie, classic | ||
8, green, peakspike, rainbow | ||
9, memepool, eyes blend, ukraine | ||
10, pepe, mohawk2 / eyes red, usa | ||
11, alien, peakspike purple, china | ||
12, deathbot, cap, great britain | ||
13, safemode, halo / lasereyes red, europe | ||
14, pink, knittedcap / eyes blue, austria | ||
15, zombie, cap subway, bitcoin pattern | ||
... | ||
``` | ||
|
||
|
||
|
||
Bonus - All together now. Find the composite fam image of all 1000 in a 50×20 grid in [letsrock.png](letsrock.png) (~?MB - ?×?px). | ||
Bonus - All together now. Find the composite fam image of all 1000 in a 50×20 grid in [letsrock.png](letsrock.png) (~200k - 1400×560px). | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
require 'pixelart' | ||
|
||
require_relative 'base' | ||
|
||
|
||
|
||
|
||
specs = read_csv( "./letsrock.csv" ) | ||
|
||
|
||
cols = 50 | ||
rows = specs.size / cols | ||
rows += 1 if specs.size % cols != 0 | ||
|
||
composite = ImageComposite.new( cols, rows, | ||
width: 28, height: 28 ) | ||
|
||
|
||
|
||
|
||
specs.each_with_index do |rec, i| | ||
base = rec['type'] | ||
accessories = (rec['accessories'] || '' ).split( '/').map { |acc| acc.strip } | ||
background = rec['background'] | ||
|
||
spec = ["bg #{background}", base] + accessories | ||
|
||
img = generate( *spec ) | ||
|
||
num = "%03d" % i | ||
puts "==> rock #{num}" | ||
img.save( "./i/rock#{num}.png" ) | ||
img.zoom(8).save( "./i@8x/rock#{num}@8x.png" ) | ||
|
||
composite << img | ||
end | ||
|
||
|
||
composite.save( "./letsrock.png" ) | ||
|
||
puts "bye" |
Oops, something went wrong.