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

coolcats

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coolcats

  • 1.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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( "coolcat1@4x.png" )

coolcat = Coolcat::Image.generate( 'Hearts', 'Afro Black' )
coolcat.save( "coolcat2.png")
coolcat.zoom(4).save( "coolcat2@4x.png" )

coolcat = Coolcat::Image.generate( 'Unamused' )
coolcat.save( "coolcat3.png")
coolcat.zoom(4).save( "coolcat3@4x.png" )

Voila!

In 4x:

## try tv heads

coolcat = Coolcat::Image.generate( 'TV Head White', 'TV Face 404' )
coolcat.save( "coolcat4.png")
coolcat.zoom(4).save( "coolcat4@4x.png" )

coolcat = Coolcat::Image.generate( 'TV Head Grey',  'TV Face No Signal' )
coolcat.save( "coolcat5.png")
coolcat.zoom(4).save( "coolcat5@4x.png" )

coolcat = Coolcat::Image.generate( 'TV Head Purple', 'TV Face XP' )
coolcat.save( "coolcat6.png")
coolcat.zoom(4).save( "coolcat6@4x.png" )

Voila!

In 4x:

## try halloween theme

coolcat = Coolcat::Image.generate( 'Jack' )
coolcat.save( "coolcat7.png")
coolcat.zoom(4).save( "coolcat7@4x.png" )

coolcat = Coolcat::Image.generate( 'Scream' )
coolcat.save( "coolcat8.png")
coolcat.zoom(4).save( "coolcat8@4x.png" )

coolcat = Coolcat::Image.generate( 'Beret Red', 'Skull' )
coolcat.save( "coolcat9.png")
coolcat.zoom(4).save( "coolcat9@4x.png" )

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( "base@4x.png" )
beanie_orange.zoom( 4 ).save( "beanie_orange@4x.png" )
costume_gorilla.zoom( 4 ).save( "costume_gorilla@4x.png" )
overalls_blue.zoom( 4 ).save( "overalls_blue@4x.png" )

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.

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