Skip to content

Commit df477ae

Browse files
committed
up
1 parent be340a8 commit df477ae

File tree

3 files changed

+46
-42
lines changed

3 files changed

+46
-42
lines changed

01_mint.md renamed to 01_rip.md

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Do-It-Yourself (DIY) - Yes, You Can! - Mint Your Own Punks in Original 24x24 Pixel Format or With 2X / 4X / 8X Zoom
1+
# Do-It-Yourself (DIY) - Yes, You Can! - Rip & Save Your Own Punks in Original 24x24 Pixel Format or With 2X / 4X / 8X Zoom
22

33

4-
## Step 0 - Download the True Official Genuine CryptoPunks™ composite image
4+
## Step 0 - Download the True Official Genuine Matt & John's® (Crypto) Punks composite image
55

6-
One time / first time only - Download the True Official Genuine CryptoPunks™ composite
7-
housing all 10 000 CryptoPunks
6+
One time / first time only - Download the True Official Genuine Matt & John's® (Crypto) Punks composite
7+
housing all 10 000 punks
88
in a single 2400×2400 image (~830 kb) for free.
99
See [`punks.png` »](https://github.com/larvalabs/cryptopunks/blob/master/punks.png)
1010

@@ -13,19 +13,19 @@ See [`punks.png` »](https://github.com/larvalabs/cryptopunks/blob/master/punks.
1313

1414

1515

16-
Let's create a script to mint punks.
16+
Let's create a script to rip & save punks.
1717

18-
## Step 1 - Read True Official Genuine CryptoPunks™ composite image
18+
## Step 1 - Read True Official Genuine Matt & John's® (Crypto) Punks composite image
1919

2020

2121
``` ruby
22-
require 'cryptopunks'
22+
require 'pixelart'
2323

24-
punks = Punks::Image::Composite.read( './punks.png' )
24+
punks = ImageComposite.read( './punks.png' )
2525
```
2626

2727

28-
## Step 2 - Start minting
28+
## Step 2 - Start ripping
2929

3030
Note: By default punks get saved in the original 24x24 pixel format
3131
and the first punk starts at index zero, that is, `0`.
@@ -48,13 +48,13 @@ And voila!
4848
Let's change the zoom factor:
4949

5050
``` ruby
51-
punks[0].zoom(4).save( './punk-0000x4.png' ) # use x4
52-
punks[2890].zoom(4).save( './punk-2890x4.png' )
53-
punks[8219].zoom(4).save( './punk-8219x4.png')
51+
punks[0].zoom(4).save( './punk-0000@4x.png' ) # use x4
52+
punks[2890].zoom(4).save( './punk-2890@4x.png' )
53+
punks[8219].zoom(4).save( './punk-8219@4x.png')
5454

55-
punks[0].zoom(8).save( './punk-0000x8.png' ) # or use x8
56-
punks[2890].zoom(8).save( './punk-2890x8.png' )
57-
punks[8219].zoom(8).save( './punk-8219x8.png')
55+
punks[0].zoom(8).save( './punk-0000@8x.png' ) # or use x8
56+
punks[2890].zoom(8).save( './punk-2890@8x.png' )
57+
punks[8219].zoom(8).save( './punk-8219@8x.png')
5858
```
5959

6060
And x4:
@@ -75,15 +75,15 @@ And so on.
7575

7676

7777

78-
## 10 000 More Punks - Unauthorized? No Way?!- Fuck the Establishment - Yes, You Can - Do-It-Yourself - Use Your Own Collections
78+
## 1000 More Punks - Unauthorized? No Way?!- Fuck the Establishment - Yes, You Can - Do-It-Yourself - Use Your Own Collections
7979

8080

8181
Yes, you can pass along any unauthorized edition.
8282
Only make sure all punks are lined-up left-to-right, top-to-bottom
8383
in the 24x24 pixel format in the composite image.
8484

8585

86-
Let's try the 10 000 More Punks series housing punks in
86+
Let's try the 1000 More Punks series housing punks in
8787
packs of a hundred each. Let's have a looksie at the first 100
8888
in the series.
8989

@@ -92,22 +92,22 @@ in the series.
9292

9393

9494

95-
Let's mint punk #0, #18, #40, and #88
95+
Let's rip & save punk #0, #18, #40, and #88
9696
and let's add an offset of 10000
9797
(to start counting at 10000 instead of 0) when saving to disk:
9898

9999
``` ruby
100-
punks = Punks::Image::Composite.read( './more-punks-1.png' )
100+
punks = ImageComposite.read( './more-punks-1.png' )
101101

102102
punks[0].save('./punk-10000.png')
103103
punks[18].save('./punk-10018.png')
104104
punks[40].save('./punk-10040.png')
105105
punks[88].save('./punk-10088.png')
106106

107-
punks[0].zoom(4).save('./punk-10000x4.png')
108-
punks[18].zoom(4).save('./punk-10018x4.png')
109-
punks[40].zoom(4).save('./punk-10040x4.png')
110-
punks[88].zoom(4).save('./punk-10088x4.png')
107+
punks[0].zoom(4).save('./punk-10000@4x.png')
108+
punks[18].zoom(4).save('./punk-10018@4x.png')
109+
punks[40].zoom(4).save('./punk-10040@4x.png')
110+
punks[88].zoom(4).save('./punk-10088@4x.png')
111111
```
112112

113113
And voila!
@@ -135,22 +135,22 @@ Let's try the second pack - that is, punks 100 to 199 in the series.
135135

136136

137137

138-
Let's mint punk #0, #79, #80, and #90
138+
Let's rip & save punk #0, #79, #80, and #90
139139
and let's add an offset of 10100
140140
(to start counting at 10000 plus 100 instead of 0):
141141

142142
``` ruby
143-
punks = Punks::Image::Composite.read( './more-punks-2.png' )
143+
punks = ImageComposite.read( './more-punks-2.png' )
144144

145145
punks[0].save('./punk-10100.png')
146146
punks[79].save('./punk-10179.png')
147147
punks[80].save('./punk-10180.png')
148148
punks[90].save('./punk-10190.png')
149149

150-
punks[0].zoom(4).save('./punk-10100x4.png')
151-
punks[79].zoom(4).save('./punk-10179x4.png')
152-
punks[80].zoom(4).save('./punk-10180x4.png')
153-
punks[90].zoom(4).save('./punk-10190x4.png')
150+
punks[0].zoom(4).save('./punk-10100@4x.png')
151+
punks[79].zoom(4).save('./punk-10179@4x.png')
152+
punks[80].zoom(4).save('./punk-10180@4x.png')
153+
punks[90].zoom(4).save('./punk-10190@4x.png')
154154
```
155155

156156
And voila! Super rare - world's first female alien and much more.
@@ -179,16 +179,16 @@ And so on. Happy miniting.
179179

180180
## Frequently Asked Questions (F.A.Q.s) and Answers
181181

182-
### Q: How can I mint all punks from 0 to 9999 from the Lavra Labs 24x24 series?
182+
### Q: How can I rip & save all punks from 0 to 9999 from the Matt & John's 24x24 series?
183183

184184

185185
Use a script with a loop like:
186186

187187
``` ruby
188188
# step 1: read composite image
189-
punks = Punks::Image::Composite.read( './punks.png' )
189+
punks = ImageComposite.read( './punks.png' )
190190

191-
# step 2: mint all punks
191+
# step 2: rip & save all punks
192192
(0..9999).each do |i|
193193
name = '%04d' % i
194194
punks[i].save( "./punk-#{name}.png" )

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ _Inside Unique 24×24 Pixel Art on the Blockchain..._
1818

1919
by [Gerald Bauer](https://github.com/geraldb), et al
2020

21-
- [Do-It-Yourself (DIY) - Yes, You Can! - Mint Your Own Punks in Original 24x24 Pixel Format or With 2X / 4X / 8X Zoom](01_mint.md)
21+
- [Do-It-Yourself (DIY) - Yes, You Can! - Rip & Save Your Own Punks in Original 24x24 Pixel Format or With 2X / 4X / 8X Zoom](01_rip.md)
2222
- [Statistics, Statistics, Statistics - Calculate Rarity & Popularity By Type, By Accessories, & More - Inside the Matt & John's® 10 000 Punks Population](02_attributes.md)
2323
- [Inside the Punk Art Machinery - How To Generate 10 000 Punks (and Punkettes), Algorithmically - Paint by Numbers](03_generate.md)
2424
- [10 000 More Punks - Inside the Punk Art Machinery (Continued) - How To Generate Punks, Algorithmically - Paint by Numbers - A New Punk Series](04_generate_ii.md)
25-
- [Nine Super Rare Aliens (in Cyan)? Start the Alien Invasion from Mars - Mint Little 24×24 Extraterrestrials (E.T.s) in Green, Chartreuse, Yellow, Orange, Red, Fuchsia, or Magenta](05_alien_invasion.md)
25+
- [Nine Super Rare Aliens (in Cyan)? Start the Alien Invasion from Mars - Generate Little 24×24 Extraterrestrials (E.T.s) in Green, Chartreuse, Yellow, Orange, Red, Fuchsia, or Magenta](05_alien_invasion.md)
2626
- [Christie's Nine Colored in Black 'n' White, Ye Olde' Sepia Tone, Blue or Futuristic False 8-Bit Color Palette - Free Downloads - Right-Click and Save Image](06_palette_8bit.md)
2727
- [United Colors of Humanity - Light, Lighter, Dark, Darker - How To Change Skin Tones](07_humans.md)
2828
- [Revolutionize the Digital Art Market - Fractionalize The World's First Billion Dollar Pixel Image - Build Your Own All-In-One Punk Composites - Curate Your Own Exclusive Collections Ready to Sell Off to New Owners](08_composite.md)
@@ -254,13 +254,16 @@ comments_url: https://old.reddit.com/r/CryptoPunksDev/comments/ppb0fh/public_ser
254254

255255
## Questions? Comments?
256256

257-
Yes, you can. Post them on the [D.I.Y. Punk (Pixel) Art reddit](https://old.reddit.com/r/DIYPunkArt). Thanks.
257+
Join us in the [Punk Art discord (chat server)]( https://discord.gg/FE3HeXNKRa). Yes you can.
258+
Your questions and commetary welcome.
258259

259260

261+
Or post them over at the [Help & Support](https://github.com/geraldb/help) page. Thanks.
262+
260263

261-
## License
262264

263-
![](https://publicdomainworks.github.io/buttons/zero88x31.png)
265+
266+
## License
264267

265268
The Programming Punk Step-by-Step book / guide
266269
is dedicated to the public domain.

mint.rb renamed to rip.rb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
###
22
# to run use:
3-
# ruby ./mint.rb
3+
# ruby ./rip.rb
44

55

6-
require 'cryptopunks'
6+
require 'pixelart'
77

8-
punks = Punks::Image::Composite.read( './punks.png' )
8+
punks = ImageComposite.read( './punks.png' )
99

1010

1111

@@ -25,6 +25,7 @@
2525

2626

2727

28+
2829
###
2930
# add Christie's:
3031
# 9 rare CryptoPunks to star in our 21st Century Evening Sale this May in New York.
@@ -44,7 +45,7 @@
4445

4546

4647

47-
punks = Punks::Image::Composite.read( './i/more-punks-1.png' )
48+
punks = ImageComposite.read( './i/more-punks-1.png' )
4849

4950
punks[0].save('./i/punk-10000.png')
5051
punks[18].save('./i/punk-10018.png')
@@ -57,7 +58,7 @@
5758
punks[88].zoom(4).save('./i/punk-10088x4.png')
5859

5960

60-
punks = Punks::Image::Composite.read( './i/more-punks-2.png' )
61+
punks = ImageComposite.read( './i/more-punks-2.png' )
6162

6263
punks[0].save('./i/punk-10100.png')
6364
punks[79].save('./i/punk-10179.png')

0 commit comments

Comments
 (0)