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

goblins

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

goblins

  • 1.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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

Goblins & Lil' Goblins (Pixel Monster Avatars)

Yes, you can! Generate your own 24×24 goblins or 20×20 lil' goblins (pixel) monster avatars images (off-blockchain) from text attributes (via built-in spritesheets); incl. 2x/4x/8x zoom for bigger sizes and more

Usage

Let's generate some super-rare never-before-seen goblin monster (pixel) avatars (24x24):

require 'goblins'

goblin  = Goblin::Image.generate( 'Green', 'Teeth',
                                   '3D Glasses', 'Blue Sweater' )
goblin.save( "goblin1.png")
goblin.zoom(4).save( "goblin1@4x.png" )


goblin  = Goblin::Image.generate( 'Gold 2', 'Eyes', 'Frown',
                                  'Horns', 'Suit Open' )
goblin.save( "goblin2.png")
goblin.zoom(4).save( "goblin2@4x.png" )


goblin  = Goblin::Image.generate( 'Blue', 'Eyes', 'Smile',
                                  'Hoodie', 'Bow', 'Bojangles' )
goblin.save( "goblin3.png")
goblin.zoom(4).save( "goblin3@4x.png" )

Voila!

In 4x:

Let's try some lil' goblins (20x20):

lilgoblin  = LilGoblin::Image.generate( 'Green', 'Orange Beanie',
                                       'Earring Silver', 'Blue Sweater' )
lilgoblin.save( "lilgoblin1.png")
lilgoblin.zoom(4).save( "lilgoblin1@4x.png" )


lilgoblin  = LilGoblin::Image.generate( 'Gold', 'Cool Shades',
                                        'Horns', 'Suit Open' )
lilgoblin.save( "lilgoblin2.png")
lilgoblin.zoom(4).save( "lilgoblin2@4x.png" )


lilgoblin  = LilGoblin::Image.generate( 'Red', 'Chef',
                         'Orange Shades', 'Hoodie', 'Earring Gold' )
lilgoblin.save( "lilgoblin3.png")
lilgoblin.zoom(4).save( "lilgoblin3@4x.png" )

Voila!

In 4x:

Bonus - Ugly, Uglier, Ugliest - Yes, You Can - Design Your Own Goblin (Pixel) Monsters - Original 1/1 Goblin Monster Starter Kit

Is ugly the new beau / belle? Yes, you can. Design your own goblin (pixel) monsters.

To get you started find a series of original 1/1 goblin monsters (see above in 4x zoom) and a script to (auto-)generate some variants (with horns, cap forward, hoodies, golden earrings, & more) in the goblins/sandbox »

Appendix - All Built-In Spritesheet Attributes

Goblins (24x24px)

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

(Source: goblins/spritesheet-24x24.png)

Lil' Goblins (20x20px)

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

(Source: goblins/spritesheet-20x20.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