New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

smileys

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smileys

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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

Smileys (Smilies)

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

Usage

Note: The smileys in a 24x24 canvas come in four diverent size variants - with the smiley circle with a diameter of 15px, 16px, 17px and 20px.

Let's generate some super-rare never-before-seen smileys / smilies:

require 'smileys'


smiley  = Smiley::Image.generate( "Yellow", "Face 1" )
smiley.save( "smiley1.png" )
smiley.zoom( 4 ).save( "smiley1@4x.png" )

base = smiley

smiley = base.background( 'ukraine' )
smiley.save( "smiley1.1.png" )
smiley.zoom( 4 ).save( "smiley1.1@4x.png" )

smiley = base.background( 'rainbow' )
smiley.save( "smiley1.2.png" )
smiley.zoom( 4 ).save( "smiley1.2@4x.png" )


# no - no outline variant
smiley  = Smiley::Image.generate( "Yellow.No", "Face 1" )
smiley.save( "smiley1b.png" )
smiley.zoom( 4 ).save( "smiley1b@4x.png" )

# (re)try with eyes + mouth
smiley  = Smiley::Image.generate( "Yellow", "Open", "Smile" )
smiley.save( "smiley1c.png" )
smiley.zoom( 4 ).save( "smiley1c@4x.png" )

Voila!

4x:

smiley = Smiley::Image.generate( "Greener", "Face 2" )
smiley.save( "smiley2.png" )
smiley.zoom( 4 ).save( "smiley2@4x.png" )

smiley = Smiley::Image.generate( "Greener.No", "Face 2" )
smiley.save( "smiley2b.png" )
smiley.zoom( 4 ).save( "smiley2b@4x.png" )

# (re)try with eyes + mouth
smiley  = Smiley::Image.generate( "Greener", "Shades", "Grin (Right)" )
smiley.save( "smiley2c.png" )
smiley.zoom( 4 ).save( "smiley2c@4x.png" )

Voila!

4x:

And so on.

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