The Do-It-Yourself (DIY) Factory of Modern Originals (FoMO) Presents
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
- home :: github.com/profilepic/text-to-image
- bugs :: github.com/profilepic/text-to-image/issues
- gem :: rubygems.org/gems/cyberpunks
- rdoc :: rubydoc.info/gems/cyberpunks
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( "[email protected]" )
## let's change the background
punk = base.background( 'Codelines' )
punk.save( "punk1b.png")
punk.zoom(4).save( "[email protected]" )
punk = base.background( '#638596' )
punk.save( "punk1c.png")
punk.zoom(4).save( "[email protected]" )
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( "[email protected]" )
## let's change the background
punk = base.background( 'Pink Diag' )
punk.save( "punk2b.png")
punk.zoom(4).save( "[email protected]" )
punk = base.background( '#638596' )
punk.save( "punk2c.png")
punk.zoom(4).save( "[email protected]" )
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( "[email protected]" )
punk = base.background( 'Orange Tie Dye' )
punk.save( "punk3b.png")
punk.zoom(4).save( "[email protected]" )
punk = base.background( '#638596' )
punk.save( "punk3c.png")
punk.zoom(4).save( "[email protected]" )
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( "[email protected]" )
punk = base.background( 'Metropolis 2' )
punk.save( "punk4b.png")
punk.zoom(4).save( "[email protected]" )
punk = base.background( '#638596' )
punk.save( "punk4c.png")
punk.zoom(4).save( "[email protected]" )
Voila!
In 4x:
And so on.
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.
See the spritesheet.csv dataset for all attribute names (w/ categories).
(Source: cyperpunks/spritesheet.png)
Post them on the D.I.Y. Punk (Pixel) Art reddit. Thanks.