Class: RubySvgImageGenerator::MonkeyAvatars::Face
- Inherits:
-
Theme::ColorPart
- Object
- Theme::Part
- Theme::ColorPart
- RubySvgImageGenerator::MonkeyAvatars::Face
- Defined in:
- lib/ruby_svg_image_generator/themes/monkey_avatars/face.rb
Constant Summary collapse
- COLORS =
["#6C3E18", "#966237"]
- MATRICES =
[ [ [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0], [ 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0], [ 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0], [ 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1], [ 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1], [ 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1], [ 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1], [ 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1], [ 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0], [ 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0], [ 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0], [ 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0], [ 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0] ],[ [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0], [ 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0], [ 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0], [ 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1], [ 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1], [ 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1], [ 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1], [ 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1], [ 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0], [ 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0], [ 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0], [ 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0], [ 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0] ] ]
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ 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(options = {}) ⇒ Face
Returns a new instance of Face.
43 44 45 |
# File 'lib/ruby_svg_image_generator/themes/monkey_avatars/face.rb', line 43 def initialize ={} super "Face" end |