Class: RubySvgImageGenerator::FaceAvatars::Mouth

Inherits:
Theme::Part
  • Object
show all
Defined in:
lib/ruby_svg_image_generator/themes/face_avatars/mouth.rb

Constant Summary collapse

A =
"#BD3C4D"
MATRICES =
[
  [
    [ 0, 0, 0, 0, 0, 0, 0],
    [ 0, 0, 0, 0, 0, 0, 0],
    [ 0, 0, 0, 0, 0, 0, 0],
    [ 0, 0, 0, 0, 0, 0, 0],
    [ 0, 0, 0, 0, 0, 0, 0],
    [ 0, 0, A, A, A, 0, 0],
    [ 0, 0, 0, 0, 0, 0, 0],
    [ 0, 0, 0, 0, 0, 0, 0]
  ],[
    [ 0, 0, 0, 0, 0, 0, 0],
    [ 0, 0, 0, 0, 0, 0, 0],
    [ 0, 0, 0, 0, 0, 0, 0],
    [ 0, 0, 0, 0, 0, 0, 0],
    [ 0, 0, 0, 0, 0, 0, 0],
    [ 0, 0, 0, A, 0, 0, 0],
    [ 0, 0, 0, 0, 0, 0, 0],
    [ 0, 0, 0, 0, 0, 0, 0]
  ]
]

Instance Method Summary collapse

Methods inherited from Theme::Part

#[], #each, #get_matrix, #get_random_matrix, #name

Constructor Details

#initializeMouth

Returns a new instance of Mouth.



30
31
32
# File 'lib/ruby_svg_image_generator/themes/face_avatars/mouth.rb', line 30

def initialize
  super "Mouth"
end