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

punks

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

punks

  • 2024.2.29
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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

Punks (Incl. Ye Olde Punks V1/V2 Anno 2017), Phunks, Philips, Marilyns, Marcs, Saudis/Sheiks, Men In Black, Hotties & More (Pixel Characters / Avatars)

Yes, you can! Generate your own 24×24 (or 32×32 or 12×12) punk (incl. Matt & John's® ye olde punks v1/v2 anno 2017 style), phunk, philip, marilyn, marc, saudi/sheik, man in black, hottie & more (pixel) avatar / character images (off chain) 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 punk (pixel) avatars / characters...

24px

require 'punks'

punk = Punk::Image.generate( 'Alien', 'Cap Forward', 'Small Shades', 'Pipe' )
punk.save( "./alien.png" )
punk.zoom(4).save( "./alien@4x.png" )

resulting in:

4x:

or try a batch:

specs = parse_data( <<TXT )
  Female 1
  Female 2
  Female 3
  Male 1
  Male 2
  Male 3
  Female 2, Blonde Bob, Green Eye Shadow, Hot Lipstick
  Male 1, Mohawk
  Female 3, Wild Hair, Hot Lipstick
  Male 1, Wild Hair, Nerd Glasses, Pipe
  Male 2, Goat, Earring, Wild Hair, Big Shades
  Female 2, Earring, Purple Eye Shadow, Half Shaved, Hot Lipstick

  Zombie
  Zombie, Crazy Hair, Earring
  Zombie, Bandana, Eye Patch, Earring
  Zombie, Knitted Cap
  Zombie, Top Hat, Nerd Glasses, Cigarette
  Zombie, Wild Hair, 3D Glasses, Smile
  Zombie, Headband, Goat
  Zombie, Cap Forward, Small Shades, Pipe
  Zombie, Beanie, Smile
  Zombie, Hoodie

  Ape
  Ape, Headband
  Ape, Cap Forward, Earring
  Ape, Knitted Cap
  Ape, Knitted Cap, Small Shades
  Ape, Top Hat, Small Shades
  Ape, Cowboy Hat, 3D Glasses
  Ape, Hoodie

  Alien
  Alien, Knitted Cap, Earring
  Alien, Knitted Cap, Earring, Medical Mask
  Alien, Headband
  Alien, Cap Forward, Small Shades, Pipe
TXT


specs.each_with_index do |attributes, i|
  punk = Punk::Image.generate( *attributes )
  punk.save( "./punk#{i}.png" )
  punk.zoom(4).save( "./punk#{i}@4x.png" )
end

resulting in:

...

4x:

...

12px

punk = Punk12::Image.generate( 'Pink Female', 'Blonde Bob', 'Mole' )
punk.save( "./punk12_pink_female.png" )
punk.zoom(10).save( "./punk12_pink_female@10x.png" )

punk = Punk12::Image.generate( 'Alien Green', 'Hoodie' )
punk.save( "./punk12_alien_green.png" )
punk.zoom(10).save( "./punk12_alien_green@10x.png" )

resulting in:

and so on and so forth.

Bonus - Factory of Modern Originals (FoMO)

Do-it-yourself (DIY) - yes, you can! - fab(criate) your own unique punks w/ text attributes (via built-in spritesheets) incl. 2x/4x/8x zoom for bigger sizes and more.

Let's try to fab(ricate) a node punk (24×24):

$ fab node maxibiz chinstrap tophat goldchain --zoom=4

resulting in:

or an ultra-rare (green monster) orc:

$ fab node orc chinstrap_light wildhair_red classicshades --zoom=4

resulting in:

More Factory of Modern Originals (FoMO) »

Questions? Comments?

Join us in the Punk Art discord (chat server). Yes you can. Your questions and commetary welcome.

Or post them over at the Help & Support page. Thanks.

FAQs

Package last updated on 29 Feb 2024

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