Class: RubySvgImageGenerator::FaceAvatars::Face
- Inherits:
-
Theme::ColorPart
- Object
- Theme::Part
- Theme::ColorPart
- RubySvgImageGenerator::FaceAvatars::Face
- Defined in:
- lib/ruby_svg_image_generator/themes/face_avatars/face.rb
Constant Summary collapse
- COLORS =
["#574130", "#EDB07B", "#73592F", "#FADFB4"]
- MATRICES =
[ [ [ 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 1, 1, 1, 0, 0], [ 0, 1, 1, 1, 1, 1, 0], [ 1, 1, 1, 1, 1, 1, 1], [ 1, 1, 1, 1, 1, 1, 1], [ 0, 1, 1, 1, 1, 1, 0], [ 0, 0, 1, 1, 1, 0, 0], [ 0, 0, 1, 1, 1, 0, 0] ],[ [ 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 1, 1, 1, 0, 0], [ 0, 1, 1, 1, 1, 1, 0], [ 1, 1, 1, 1, 1, 1, 1], [ 0, 1, 1, 1, 1, 1, 0], [ 0, 1, 1, 1, 1, 1, 0], [ 0, 0, 1, 1, 1, 0, 0], [ 0, 0, 0, 1, 0, 0, 0] ] ]
Instance Method Summary collapse
-
#initialize ⇒ Face
constructor
A new instance of Face.
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
#initialize ⇒ Face
Returns a new instance of Face.
29 30 31 |
# File 'lib/ruby_svg_image_generator/themes/face_avatars/face.rb', line 29 def initialize super "Face" end |