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

shibainus

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shibainus

  • 1.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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

doge = Shiba::Image.generate( 'Dark', 'Tiara', 'Big Shades' )
doge.save( "doge2.png")
doge.zoom(4).save( "doge2@4x.png" )

doge = Shiba::Image.generate( 'Zombie', 'Crazy Hair' )
doge.save( "doge3.png")
doge.zoom(4).save( "doge3@4x.png" )

doge = Shiba::Image.generate( 'Alien', 'Headband' )
doge.save( "doge4.png")
doge.zoom(4).save( "doge4@4x.png" )

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( "classic@4x.png" )
crazy_hair.zoom( 4 ).save( "crazy_hair@4x.png" )
beanie.zoom( 4 ).save( "beanie@4x.png" )
big_shades.zoom( 4 ).save( "big_shades@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: shibainus/spritesheet.png)

Questions? Comments?

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

FAQs

Package last updated on 11 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