Class: RubySvgImageGenerator::FaceAvatars::Background

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

Constant Summary collapse

COLORS =
["#91E3B5", "#62DB5C", "#91E3DB", "#E68585", "#dddddd", "#328463"]
MATRICES =
[
  [
    [ 1, 1, 1, 1, 1, 1, 1],
    [ 1, 1, 1, 1, 1, 1, 1],
    [ 1, 1, 1, 1, 1, 1, 1],
    [ 1, 1, 1, 1, 1, 1, 1],
    [ 1, 1, 1, 1, 1, 1, 1],
    [ 1, 1, 1, 1, 1, 1, 1],
    [ 1, 1, 1, 1, 1, 1, 1],
    [ 1, 1, 1, 1, 1, 1, 1]
  ]
]

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

#initializeBackground

Returns a new instance of Background.



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

def initialize
  super "Background"
end