Class: RubySvgImageGenerator::FaceAvatars::Eyes

Inherits:
Theme::ColorPart show all
Defined in:
lib/ruby_svg_image_generator/themes/face_avatars/eyes.rb

Constant Summary collapse

COLORS =
["#247337", "#6978DB", "#53552F", "#145D75", "#666666"]
MATRICES =
[
  [
    [ 0, 0, 0, 0, 0, 0, 0],
    [ 0, 0, 0, 0, 0, 0, 0],
    [ 0, 0, 0, 0, 0, 0, 0],
    [ 0, 0, 1, 0, 1, 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]
  ]
]

Instance Method Summary collapse

Methods inherited from Theme::ColorPart

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

Methods inherited from Theme::Part

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

Constructor Details

#initializeEyes

Returns a new instance of Eyes.



21
22
23
# File 'lib/ruby_svg_image_generator/themes/face_avatars/eyes.rb', line 21

def initialize
  super "Eyes"
end