Skip to content

Latest commit

 

History

History
105 lines (65 loc) · 4.44 KB

README.md

File metadata and controls

105 lines (65 loc) · 4.44 KB

Reposted from On Air Now! Live Art Base Coding Session - Let's Download the 3500 Moonquacks Token Meta Data, Images (Incl. 8 1/1s), & More - Follow Along - If It Looks Like A Duck, Swims Like A Duck, And Quacks Like A Duck...:

let's continue the tradition started Sunday June 26th - and for more live coding fun today - let's try another moon-themed collection to download - or is it "right-click & save" - using the artbase machinery »

Any good pixel art collections out there? Yes, you can - tell us and post a comment.

Let's start with 3500 Moonquacks (SOLD OUT!). Advertised as "by a team of non-billionaires [...] we're looking to democratize generational wealth for everyone" or such crypto bro nonsense. Learn more at the official links:

What's your take on the Moonquacks? Are Quacking Ducks the new Boring Monke's?


Note: For full follow along step-by-step documentation see On Air Now! Live Art Base Coding Session - Let's Download the 10 000 Moonrunner Token Meta Data, Images, & More - Don't Get Left Out Of The Pack - Follow Along. Here I post updates throughout the day - but a little less in detail. I try to upload all scripts, token metadata, images and more over at the pixel art exchange. In the artbase.sandbox see /moonquacks »

Okkie - let's start - the Moonquacks token contract:

And let's try query for the tokenURI for token #1 resulting in:

And the meta data record for token #1 reads:

{"name":"MoonQuacks #1",
 "description":"MoonQuacks is a collection of 3,500...",
 "image":"ipfs://Qmea6VGe5x7NgsnNEbbUZ3KT49gy2NEEu3UAAMMw6ZFnTs/1",
 "attributes":[
     {"trait_type":"Background", "value":"Green"},
     {"trait_type":"Body", "value":"Brown"},
     {"trait_type":"Outerwear", "value":"None"},
     {"trait_type":"Headgear", "value":"None"},
     {"trait_type":"Bill"," value":"Yellow"},
     {"trait_type":"Eyes"," value":"Rainbow"},
     {"trait_type":"Eyewear", "value":"Monocle"}]}

And let's try some more:

Let's try the image link (again via an ipfs web gateway) for token #1:

And let's try some more:

Next let's have a looksie at the pixel art and let's bring in / on the art critiques...

Art Question #1: What's the dimension (width x height) in pixels of the image?

A: 350x350

Art Question #2: What's the zoom factor (5x? 10x?) used in the "for-sale display" image and what's the true pixel art dimension (width x height)?

A: The zoom factor is 8x+ and the true pixel art dimension is 42x42 (8px x 42 = 336 + 14).

Now let's hand it over to the artbase machinery. Let's add the collection configuration in /moonquaks/collection.rb reading:

COLLECTION = TokenCollection.new( 'moonquacks', 3500,
       token_base: 'ipfs://QmS3vn9hNd2sxM4igwbT3qfafXYxeeiArC67ETKx4vQuLS/{id}',
       image_base: 'ipfs://Qmea6VGe5x7NgsnNEbbUZ3KT49gy2NEEu3UAAMMw6ZFnTs/{id}',
       format: '42x42',    # 8px * 42 = 336 (+14)
       source: '350x350',
       offset: 1,
)

And now you can:

  1. Download all metadata one-by-one using:

    $ artbase moonquacks m

  2. Download all images one-by-one using:

    $ artbase moonquacks i

  3. Downsample (from 350x350 to 42x42) / pixelate all images one-by-one using:

    $ artbase moonquacks px

  4. Generate an all-in-one composite:

    $ artbase moonquacks composite

And more.