Class: Philip::Image

Inherits:
Pixelart::Image
  • Object
show all
Defined in:
lib/punks/philips.rb

Constant Summary collapse

PHILIP =

note: right-looking (“pre-phlipped”) philip

Pixelart::Image.read( "#{Pixelart::Module::Punks.root}/config/philip-24x24.png" )
NAMES =
['philip',  'philips',
'philipp', 'philipps' ]

Class Method Summary collapse

Class Method Details

.generate(*values) ⇒ Object



14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/punks/philips.rb', line 14

def self.generate( *values )
    punk = new( 24, 24 )
    punk.compose!( PHILIP )

    values.each do |name|
      attribute = Punk::Sheet.find_by( name: name,
                                       gender: 'm' )
      punk.compose!( attribute )
    end

    phunk = punk.mirror
    phunk
end