Skip to content

Latest commit

 

History

History

shibainus

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Shiba Inus (Pixel Doge)

Yes, you can! Generate your own 24×24 pixel shiba inu doge images (off-blockchain) from text attributes (via built-in spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more

Usage

Let's generate some super-rare never-before-seen shiba inu (pixel doge):

require 'shibainus'

doge = Shiba::Image.generate( 'Classic', '3D Glasses' )
doge.save( "doge1.png")
doge.zoom(4).save( "[email protected]" )

doge = Shiba::Image.generate( 'Dark', 'Tiara', 'Big Shades' )
doge.save( "doge2.png")
doge.zoom(4).save( "[email protected]" )

doge = Shiba::Image.generate( 'Zombie', 'Crazy Hair' )
doge.save( "doge3.png")
doge.zoom(4).save( "[email protected]" )

doge = Shiba::Image.generate( 'Alien', 'Headband' )
doge.save( "doge4.png")
doge.zoom(4).save( "[email protected]" )

Voila!

In 4x:

And so on.

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

Let's look-up some attributes:

classic         = Shiba::Sheet.find_by( name: 'Classic' )
crazy_hair      = Shiba::Sheet.find_by( name: 'Crazy Hair' )
beanie          = Shiba::Sheet.find_by( name: 'Beanie' )
big_shades      = Shiba::Sheet.find_by( name: 'Big Shades' )

classic.save( "classic.png" )
crazy_hair.save( "crazy_hair.png" )
beanie.save( "beanie.png" )
big_shades.save( "big_shades.png" )

classic.zoom( 4 ).save( "[email protected]" )
crazy_hair.zoom( 4 ).save( "[email protected]" )
beanie.zoom( 4 ).save( "[email protected]" )
big_shades.zoom( 4 ).save( "[email protected]" )

Voila!

In 4x:

And so on.

Appendix - All Built-In Spritesheet Attributes (24x24px)

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

(Source: shibainus/spritesheet.png)

Questions? Comments?

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