Skip to content

Latest commit

 

History

History
198 lines (115 loc) · 3.99 KB

01_mint.md

File metadata and controls

198 lines (115 loc) · 3.99 KB

Do-It-Yourself (DIY) - Yes, You Can! - Mint Your Own Punks in Original 24x24 Pixel Format or With 2X / 4X / 8X Zoom

Step 0 - Download the True Official Genuine CryptoPunks™ composite image

One time / first time only - Download the True Official Genuine CryptoPunks™ composite housing all 10 000 CryptoPunks in a single 2400×2400 image (~830 kb) for free. See punks.png »

Let's create a script to mint punks.

Step 1 - Read True Official Genuine CryptoPunks™ composite image

require 'cryptopunks'

punks = Punks::Image::Composite.read( './punks.png' )

Step 2 - Start minting

Note: By default punks get saved in the original 24x24 pixel format and the first punk starts at index zero, that is, 0. running up to 9999.

punks[0].save( './punk-0000.png' )
punks[2890].save( './punk-2890.png' )
punks[8219].save( './punk-8219.png')

And voila!

Let's change the zoom factor:

punks[0].zoom(4).save( './punk-0000x4.png' )   # use x4
punks[2890].zoom(4).save( './punk-2890x4.png' )
punks[8219].zoom(4).save( './punk-8219x4.png')

punks[0].zoom(8).save( './punk-0000x8.png' )  # or use x8
punks[2890].zoom(8).save( './punk-2890x8.png' )
punks[8219].zoom(8).save( './punk-8219x8.png')

And x4:

And x8:

And so on.

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

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

Let's try the 10 000 More Punks series housing punks in packs of a hundred each. Let's have a looksie at the first 100 in the series.

Let's mint punk #0, #18, #40, and #88 and let's add an offset of 10000 (to start counting at 10000 instead of 0) when saving to disk:

punks = Punks::Image::Composite.read( './more-punks-1.png' )

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

punks[0].zoom(4).save('./punk-10000x4.png')
punks[18].zoom(4).save('./punk-10018x4.png')
punks[40].zoom(4).save('./punk-10040x4.png')
punks[88].zoom(4).save('./punk-10088x4.png')

And voila!

And 4x:

Let's try the second pack - that is, punks 100 to 199 in the series.

Let's mint punk #0, #79, #80, and #90 and let's add an offset of 10100 (to start counting at 10000 plus 100 instead of 0):

punks = Punks::Image::Composite.read( './more-punks-2.png' )

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

punks[0].zoom(4).save('./punk-10100x4.png')
punks[79].zoom(4).save('./punk-10179x4.png')
punks[80].zoom(4).save('./punk-10180x4.png')
punks[90].zoom(4).save('./punk-10190x4.png')

And voila! Super rare - world's first female alien and much more.

And 4x:

And so on. Happy miniting.

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

Q: How can I mint all punks from 0 to 9999 from the Lavra Labs 24x24 series?

Use a script with a loop like:

# step 1: read composite image
punks = Punks::Image::Composite.read( './punks.png' )

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