Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

moonbirds

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moonbirds

  • 1.2.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

The Do-It-Yourself (DIY) Factory of Modern Originals (FoMO) Presents

Moonbirds & Lil' Moonbirdies (Pixel Owls 'n' Friends)

Yes, you can! Generate your own 42×42 (or lil' 24×24) pixel owl images (off-blockchain) from text attributes (via built-in spritesheets); incl. 2x/4x/8x zoom for bigger sizes and more

Usage

42×42px

Let's generate some super-rare never-before-seen moonbirds (pixel owls):

require 'moonbirds'

########
# Moonbird No. 1
bird = Moonbird::Image.generate( "Tabby Brown",
                                 "Small Orange",
                                 "Open White" )
bird.save( "moonbird1.png" )
bird.zoom( 4 ).save( "moonbird1@4x.png" )

# let's add 3D Glasses
bird = Moonbird::Image.generate( "Tabby Brown",
                                 "Small Orange",
                                 "Open White",
                                 "3D Glasses" )
bird.save( "moonbird1b.png" )
bird.zoom( 4 ).save( "moonbird1b@4x.png" )

# let's add McDonald's Red  (from the Fast Food Series)
bird = Moonbird::Image.generate( "Tabby Brown",
                                 "Small Orange",
                                 "Open White",
                                 "McDonald's Red" )
bird.zoom( 4 ).save( "moonbird1c@4x.png" )

# let's add Drive-Thru On Duty  (from the Fast Food Series)
bird = Moonbird::Image.generate( "Tabby Brown",
                                 "Small Orange",
                                 "Open White",
                                 "McDonald's Red",
                                 "Drive-Thru On Duty" )
bird.zoom( 4 ).save( "moonbird1d@4x.png" )

# let's add McDonald's Shirt - Old Skool  (from the Fast Food Series)
bird = Moonbird::Image.generate( "Tabby Brown",
                                 "Small Orange",
                                 "Open White",
                                 "McDonald's Red",
                                 "Drive-Thru On Duty",
                                 "McDonald's Shirt (Old Skool)" )
bird.zoom( 4 ).save( "moonbird1e@4x.png" )

Voila!

In 4x:

###
#  Moonbird No. 2
bird = Moonbird::Image.generate( "Professor Golden",
                                 "Small Golden",
                                 "Open Golden" )
bird.zoom( 4 ).save( "moonbird2@4x.png" )

# let's add Beanie
bird = Moonbird::Image.generate( "Crescent Golden",
                                 "Small Golden",
                                 "Open Golden",
                                 "Beanie" )
bird.zoom( 4 ).save( "moonbird2b@4x.png" )

Voila!

In 4x:

###
#  Moonbird No. 3
bird = Moonbird::Image.generate( "Brave Glitch" )
bird.zoom( 4 ).save( "moonbird3@4x.png" )

# let's add a red background
bird = bird.background( 'red' )
bird.zoom( 4 ).save( "moonbird3b@4x.png" )

Voila!

In 4x:

And so on.

42×42px (V1 / Official)

For some background - see Breaking News: Proof's Moonbirds Token Images Officialy Declared Public Domain (No Rights Reserved) under Creative Commons Zero (CC0) Dedication by Kevin Rose (Chief of Proof) - Thank You!

Let's generate some super-rare never-before-seen moonbirds (pixel owls) using the official (also known as V1) attributes:

require 'moonbirds'

########
# Moonbird No. 1
bird = MoonbirdV1::Image.generate( "Tabby Brown",
                                   "Small Orange",
                                   "Open White" )
bird.save( "moonbird1.png" )
bird.zoom( 4 ).save( "moonbird1@4x.png" )

# let's add 3D Glasses
bird = MoonbirdV1::Image.generate( "Tabby Brown",
                                   "Small Orange",
                                   "Open White",
                                   "3D Glasses" )
bird.save( "moonbird1b.png" )
bird.zoom( 4 ).save( "moonbird1b@4x.png" )

###
#  Moonbird No. 2
bird = MoonbirdV1::Image.generate( "Golden Legendary Professor",
                                   "Small Golden",
                                   "Open Golden" )
bird.zoom( 4 ).save( "moonbird2@4x.png" )

# let's add Beanie
bird = MoonbirdV1::Image.generate( "Golden Legendary Crescent",
                                   "Small Golden",
                                   "Open Golden",
                                   "Beanie" )
bird.zoom( 4 ).save( "moonbird2b@4x.png" )

###
#  Moonbird No. 3
bird = MoonbirdV1::Image.generate( "Glitch Legendary Brave",
                                   "Glitch 6" )
bird.zoom( 4 ).save( "moonbird3@4x.png" )

# let's add a red background
bird = bird.background( 'red' )
bird.zoom( 4 ).save( "moonbird3b@4x.png" )

Aside - What's the difference?

Note: The body attributes use the "official" naming e.g. Golden Legendary Crescent instead of Cresent Golden or Golden Cresent; Glitch Legendary Brave instead of Brave Glitch or Glitch Brave and so on.

All legendary body attributes are WITHOUT beak and eyes and the spritesheet includes "stand-alone" beak and eyes to mix'n'match.

The legendary bodies with gradient background, that is, cosmic, enlightened and jade, are "pre-made" include the 1/1 gradient background "out-of-the-box/spritesheet".

Easter eggs - The official attributes include super-rare never-before-seen (& used) legendary attributes (eyes, eyewear, headwear) for cosmic, enlightened, & jade moonbirds (incl. a unicorn horn!).

24×24px

Let's generate some super-rare never-before-seen lil' moonbirdies (pixel owls):

########
# Moonbirdie No. 1
birdie = Moonbirdie::Image.generate( "Tabby Brown",
                                     "Small Orange",
                                     "Open White" )
birdie.save( "moonbirdie1.png" )
birdie.zoom( 4 ).save( "moonbirdie1@4x.png" )

# let's add 3D Glasses
birdie = Moonbirdie::Image.generate( "Tabby Brown",
                                     "Small Orange",
                                     "Open White",
                                     "3D Glasses" )
birdie.save( "moonbirdie1b.png" )
birdie.zoom( 4 ).save( "moonbirdie1b@4x.png" )

Voila!

In 4x:

###
#  Moonbirdie No. 2
birdie = Moonbirdie::Image.generate( "Professor Golden",
                                     "Small Golden",
                                     "Open Golden" )
birdie.zoom( 4 ).save( "moonbirdie2@4x.png" )

# let's add Beanie
birdie = Moonbirdie::Image.generate( "Crescent Golden",
                                     "Small Golden",
                                     "Open Golden",
                                     "Beanie" )
birdie.zoom( 4 ).save( "moonbirdie2b@4x.png" )

Voila!

In 4x:

###
#  Moonbirdie No. 3
birdie = Moonbirdie::Image.generate( "Ruby Skeleton", "Small Ruby", "Moon", "Lincoln" )
birdie.zoom( 4 ).save( "moonbirdie@4x.png" )

# let's add a save / glory to ukraine background
birdie = birdie.background( 'ukraine' )
birdie.zoom( 4 ).save( "moonbirdie3b@4x.png" )

Voila!

In 4x:

And so on.

Bonus - Look-Up Attributes (Via Built-In Spritesheet)

Let's look-up some attributes:

_3d_glasses   = Moonbird::Sheet.find_by( name: '3D Glasses' )
beanie        = Moonbird::Sheet.find_by( name: 'Beanie' )
chromie       = Moonbird::Sheet.find_by( name: 'Chromie' )

mcdonalds_red = Moonbird::Sheet.find_by( name: "McDonald's Red" )

_3d_glasses.save( "3d_glasses.png" )
beanie.save( "beanie.png" )
chromie.save( "chromie.png" )
mcdonalds_red.save( "mcdonalds_red.png" )

_3d_glasses.zoom( 4 ).save( "3d_glasses@4x.png" )
beanie.zoom( 4 ).save( "beanie@4x.png" )
chromie.zoom( 4 ).save( "chromie@4x.png" )
mcdonalds_red.zoom( 4 ).save( "mcdonalds_red@4x.png" )

Voila!

In 4x:

And so on.

Appendix - All Built-In Spritesheet Attributes

42×42px

See the spritesheet-42x42.csv dataset for all attribute names (w/ categories).

(Source: moonbirds/spritesheet-42x42.png)

42×42px (V1 / Official)

See the spritesheet_v1-42x42.csv dataset for all attribute names (w/ categories).

(Source: moonbirds/spritesheet_v1-42x42.png)

Lil' 24×24px

See the spritesheet-24x24.csv dataset for all attribute names (w/ categories).

(Source: moonbirds/spritesheet-24x24.png)

Questions? Comments?

Post them on the D.I.Y. Punk (Pixel) Art reddit. Thanks.

FAQs

Package last updated on 10 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc