Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
geraldb committed Dec 17, 2023
1 parent e5c2d85 commit fac1ad9
Show file tree
Hide file tree
Showing 2,005 changed files with 1,416 additions and 1 deletion.
57 changes: 56 additions & 1 deletion README.md
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)


Expand All @@ -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):

![](i/rock000.png)
![](i/rock001.png)
![](i/rock002.png)
![](i/rock003.png)
![](i/rock004.png)
![](i/rock005.png)
![](i/rock006.png)
![](i/rock007.png)
![](i/rock008.png)
![](i/rock009.png)
![](i/rock010.png)
![](i/rock011.png)
![](i/rock012.png)
![](i/rock013.png)
![](i/rock014.png)
![](i/rock015.png)
...

and in 8x (224×224px) in [**/i@8x**](i@8x):

![](i@8x/[email protected])
![](i@8x/[email protected])
![](i@8x/[email protected])
![](i@8x/[email protected])
![](i@8x/[email protected])
![](i@8x/[email protected])
![](i@8x/[email protected])
![](i@8x/[email protected])
![](i@8x/[email protected])
![](i@8x/[email protected])
![](i@8x/[email protected])
![](i@8x/[email protected])
![](i@8x/[email protected])
![](i@8x/[email protected])
![](i@8x/[email protected])
![](i@8x/[email protected])
...


Expand All @@ -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).



Expand Down
41 changes: 41 additions & 0 deletions generate.rb
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"
Loading

0 comments on commit fac1ad9

Please sign in to comment.