Skip to content

Latest commit

 

History

History

coolcats

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Coolcats (Pixel Cats)

Yes, you can! Generate your own 24×24 pixel cat 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 coolcats (pixel cats):

require 'coolcats'


coolcat = Coolcat::Image.generate( 'Ditto', 'Beret Red' )
coolcat.save( "coolcat1.png")
coolcat.zoom(4).save( "[email protected]" )

coolcat = Coolcat::Image.generate( 'Hearts', 'Afro Black' )
coolcat.save( "coolcat2.png")
coolcat.zoom(4).save( "[email protected]" )

coolcat = Coolcat::Image.generate( 'Unamused' )
coolcat.save( "coolcat3.png")
coolcat.zoom(4).save( "[email protected]" )

Voila!

In 4x:

## try tv heads

coolcat = Coolcat::Image.generate( 'TV Head White', 'TV Face 404' )
coolcat.save( "coolcat4.png")
coolcat.zoom(4).save( "[email protected]" )

coolcat = Coolcat::Image.generate( 'TV Head Grey',  'TV Face No Signal' )
coolcat.save( "coolcat5.png")
coolcat.zoom(4).save( "[email protected]" )

coolcat = Coolcat::Image.generate( 'TV Head Purple', 'TV Face XP' )
coolcat.save( "coolcat6.png")
coolcat.zoom(4).save( "[email protected]" )

Voila!

In 4x:

## try halloween theme

coolcat = Coolcat::Image.generate( 'Jack' )
coolcat.save( "coolcat7.png")
coolcat.zoom(4).save( "[email protected]" )

coolcat = Coolcat::Image.generate( 'Scream' )
coolcat.save( "coolcat8.png")
coolcat.zoom(4).save( "[email protected]" )

coolcat = Coolcat::Image.generate( 'Beret Red', 'Skull' )
coolcat.save( "coolcat9.png")
coolcat.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:

base            = Coolcat::Sheet.find_by( name: 'Base' )
beanie_orange   = Coolcat::Sheet.find_by( name: 'Beanie Orange' )
costume_gorilla = Coolcat::Sheet.find_by( name: 'Costume Gorilla' )
overalls_blue   = Coolcat::Sheet.find_by( name: 'Overalls Blue' )

base.save( "base.png" )
beanie_orange.save( "beanie_orange.png" )
costume_gorilla.save( "costume_gorilla.png" )
overalls_blue.save( "overalls_blue.png" )

base.zoom( 4 ).save( "[email protected]" )
beanie_orange.zoom( 4 ).save( "[email protected]" )
costume_gorilla.zoom( 4 ).save( "[email protected]" )
overalls_blue.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: coolcats/spritesheet.png)

Questions? Comments?

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