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

cyberpunks

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cyberpunks

  • 1.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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

Cyberpunks (Pixel Avatars)

Yes, you can! Generate your own cyberpunk (blade runner) sci-fi 32×32 pixel avatar images (off-blockchain) from 100+ 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 sci-fi (blade runner) cyberpunk (pixel) avatars / characters.

Note: Note: For best merging / composing (of the attributes) use the order 1) Race 2) Face 3) Mouth 4) Nose 5) Eyes 6) Ear Accessory 7) Face Accessory 8) Mask 9) Head Below 10) Eye Accessory 11) Head Above and 12) Mouth Accessory:

###
#  Cyberpunk No. 1
base  = Cyberpunk::Image.generate( 'Human 6',
                                   'Goatee Black',
                                   'Idle',
                                   'Upturned Septum Piercing',
                                   'Masc Idle',
                                   'Beanie',
                                   'Cig' )
punk = base
punk.save( "punk1.png")
punk.zoom(4).save( "punk1@4x.png" )

## let's change the background
punk = base.background( 'Codelines' )
punk.save( "punk1b.png")
punk.zoom(4).save( "punk1b@4x.png" )

punk = base.background( '#638596' )
punk.save( "punk1c.png")
punk.zoom(4).save( "punk1c@4x.png" )

Voila!

In 4x:

###
#  Cyberpunk No. 2
base  = Cyberpunk::Image.generate( 'Bot',
                                   'Lipstick Black',
                                   'Bot Nose 3',
                                   'Femme Star Liner',
                                   'Large Hoop Earrings',
                                   'Chainspace Deck Elite I',
                                   'Long Pink Pigtails' )
punk = base
punk.save( "punk2.png")
punk.zoom(4).save( "punk2@4x.png" )

## let's change the background
punk = base.background( 'Pink Diag' )
punk.save( "punk2b.png")
punk.zoom(4).save( "punk2b@4x.png" )

punk = base.background( '#638596' )
punk.save( "punk2c.png")
punk.zoom(4).save( "punk2c@4x.png" )

Voila!

In 4x:

###
#  Cyberpunk No. 3
base  = Cyberpunk::Image.generate( 'Human 9',
                                   'Smile',
                                   'Delicate',
                                  'Femme Wide',
                                  'Large Hoop Earrings',
                                  'Messy Bun')
punk = base
punk.save( "punk3.png")
punk.zoom(4).save( "punk3@4x.png" )

punk = base.background( 'Orange Tie Dye' )
punk.save( "punk3b.png")
punk.zoom(4).save( "punk3b@4x.png" )

punk = base.background( '#638596' )
punk.save( "punk3c.png")
punk.zoom(4).save( "punk3c@4x.png" )

Voila!

In 4x:

###
#  Cyberpunk No. 4
base  = Cyberpunk::Image.generate( 'Skull Blue',
                                   'Skull Red Dot',
                                   'Hood',
                                   'Dom Rose' )
punk = base
punk.save( "punk4.png")
punk.zoom(4).save( "punk4@4x.png" )

punk = base.background( 'Metropolis 2' )
punk.save( "punk4b.png")
punk.zoom(4).save( "punk4b@4x.png" )

punk = base.background( '#638596' )
punk.save( "punk4c.png")
punk.zoom(4).save( "punk4c@4x.png" )

Voila!

In 4x:

And so on.

Bonus - Look-Up Attributes (Via Built-In Spritesheet)

Let's look-up some attributes:

skull_gold       = Cyberpunk::Sheet.find_by( name: 'Skull Gold' )
egirl_hair       = Cyberpunk::Sheet.find_by( name: 'E-Girl Hair' )
sun_glasses      = Cyberpunk::Sheet.find_by( name: 'Sun Glasses' )
jack_o_lantern   = Cyberpunk::Sheet.find_by( name: "Jack-O'-Lantern" )

skull_gold.save( "skull_gold.png" )
egirl_hair.save( "egirl_hair.png" )
sun_glasses.save( "sun_glasses.png" )
jack_o_lantern.save( "jack_o_lantern.png" )

skull_gold.zoom( 4 ).save( "skull_gold@4x.png" )
egirl_hair.zoom( 4 ).save( "egirl_hair@4x.png" )
sun_glasses.zoom( 4 ).save( "sun_glasses@4x.png" )
jack_o_lantern.zoom( 4 ).save( "jack_o_lantern@4x.png" )

Voila!

In 4x:

And so on.

Appendix - All Built-In Spritesheet Attributes (32x32px)

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

(Source: cyperpunks/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