Skip to content

Latest commit

 

History

History

headphone

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Headphone - Attribute of the Day - Punk w/ Headphone

Let's get inspired by Bit Punk! on Cardano - see #062 - and let's design headphones from scratch:

headphone = Image.parse( <<TXT, colors: ['444444', 'CDCDCD'] )
. . . . x x x x x x x . . . .
. . . x . . . . . . . x . . .
. . x . . . . . . . . . x . .
. x . . . . . . . . . . . x .
. x . . . . . . . . . . . x .
. x . . . . . . . . . . . x .
. x . . . . . . . . . . . x .
. x @ . . . . . . . . . @ x .
. @ @ . . . . . . . . . @ @ .
x @ @ . . . . . . . . . @ @ x
. @ @ . . . . . . . . . @ @ .
. . @ . . . . . . . . . @ . .
TXT

headphone.save( 'headphone.png' )
headphone.zoom(4).save( 'headphone4x.png' )

Voila!

4x

And let's try the headphone on the punk archetypes :

designs = [
  'human-male!lighter',
  'human-male!light',
  'human-male!dark',
  'human-male!darker',
  'zombie-male',
  'ape-male',
  'alien-male',
 ]

designs.each do |design|
  punk = Punks::Image.new( design: design )

  punk[4,12] = 0   if design == 'alien-male'   ## quick hack/fix for alien ear

  punk.compose!( headphone, 4, 4 )

  name = design.sub( '!', '_')   ## note: change human-male!lighter to human-male_lighter

  punk.save( "punk_headphone-#{name}.png" )
  punk.zoom(4).save( "punk_headphone-#{name}x4.png" )
end

Voila!

4x

Let's add hair . Voila!

4x

Day 2

Let's get inspired by Legion Punks on Solana and let's design a headphone and hair all-in-one combo from scratch:

headphone_ii = Image.parse( <<TXT, colors: ['292B2E', 'A61121'] )
. . . . . @ @ @ @ @ . . . . .
. . . @ @ @ x x x x @ @ . . .
. . @ @ x x x x x x x x @ . .
. @ @ x x . . . . . . x x @ .
. @ x x . . . . . . . . x @ .
. @ x . . . . . . . . . x @ .
@ @ x x . . . . . . . . x @ @
@ @ @ x . . . . . . . . x x @
@ @ @ x . . . . . . . . x x @
@ @ @ x . . . . . . . . x x @
. @ @ . . . . . . . . . . @ .
TXT

headphone_ii.save( 'headphone_ii.png' )
headphone_ii.zoom(4).save( 'headphone_ii4x.png' )

Voila!

4x

And again let's try the headphone + hair combo on the punk archetypes .

Voila!

4x

That's it. Now design and try your own attributes. Yes, you can!

Questions? Comments?

Post them on the CryptoPunksDev reddit. Thanks.