Cyberpunks (Pixel Avatars)

cyberpunks - generate your own cyberpunk (blade runner) sci-fi 32×32 pixel avatar images (off chain) 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 sci-fi (blade runner) cyberpunk (pixel avatars).

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

###
#  Cyberpunk No. 1
punk  = Cyberpunk::Image.generate( 'Codelines',
                                   'Human 6',
                                   'Goatee Black',
                                   'Idle',
                                   'Upturned Septum Piercing',
                                   'Masc Idle',
                                   'Beanie',
                                   'Cig' )

punk.save( "punk1.png")
punk.zoom(4).save( "[email protected]" )

## let's change the background
punk  = Cyberpunk::Image.generate( 'Human 6',
                                   'Goatee Black',
                                   'Idle',
                                   'Upturned Septum Piercing',
                                   'Masc Idle',
                                   'Beanie',
                                   'Cig',
                                   background: '#638596' )

punk.save( "punk1b.png")
punk.zoom(4).save( "[email protected]" )

Voila!

In 4x:

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


## let's change the background
punk  = Cyberpunk::Image.generate(  'Bot',
                                    'Lipstick Black',
                                    'Bot Nose 3',
                                    'Femme Star Liner',
                                    'Large Hoop Earrings',
                                    'Chainspace Deck Elite I',
                                    'Long Pink Pigtails',
                                    background: '#638596' )
punk.save( "punk2b.png")
punk.zoom(4).save( "[email protected]" )

Voila!

In 4x:

###
#  Cyberpunk No. 3
punk  = Cyberpunk::Image.generate( 'Orange Tie Dye',
 'Human 9',
  'Smile',
  'Delicate',
  'Femme Wide',
  'Large Hoop Earrings',
   'Messy Bun')
punk.save( "punk3.png")
punk.zoom(4).save( "[email protected]" )


punk  = Cyberpunk::Image.generate(  'Human 9',
'Smile',
'Delicate',
'Femme Wide',
'Large Hoop Earrings',
 'Messy Bun',
  background: '#638596' )
punk.save( "punk3b.png")
punk.zoom(4).save( "[email protected]" )

Voila!

In 4x:

###
#  Cyberpunk No. 4
punk  = Cyberpunk::Image.generate( 'Metropolis 2',
                                    'Skull Blue',
  'Skull Red Dot',
   'Hood',
  'Dom Rose' )
punk.save( "punk4.png")
punk.zoom(4).save( "[email protected]" )


punk  = Cyberpunk::Image.generate( 'Skull Blue',
  'Skull Red Dot',
   'Hood',
  'Dom Rose',
  background: '#638596' )
punk.save( "punk4b.png")
punk.zoom(4).save( "[email protected]" )

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( "[email protected]" )
egirl_hair.zoom( 4 ).save( "[email protected]" )
sun_glasses.zoom( 4 ).save( "[email protected]" )
jack_o_lantern.zoom( 4 ).save( "[email protected]" )

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 CryptoPunksDev reddit. Thanks.