Class: Emfsvg::Visitors::EmrVisitor::ColorRGB
- Inherits:
-
Struct
- Object
- Struct
- Emfsvg::Visitors::EmrVisitor::ColorRGB
- Defined in:
- lib/emfsvg/visitors/emr_visitor.rb
Instance Attribute Summary collapse
-
#b ⇒ Object
Returns the value of attribute b.
-
#g ⇒ Object
Returns the value of attribute g.
-
#r ⇒ Object
Returns the value of attribute r.
Instance Method Summary collapse
Instance Attribute Details
#b ⇒ Object
Returns the value of attribute b
292 293 294 |
# File 'lib/emfsvg/visitors/emr_visitor.rb', line 292 def b @b end |
#g ⇒ Object
Returns the value of attribute g
292 293 294 |
# File 'lib/emfsvg/visitors/emr_visitor.rb', line 292 def g @g end |
#r ⇒ Object
Returns the value of attribute r
292 293 294 |
# File 'lib/emfsvg/visitors/emr_visitor.rb', line 292 def r @r end |
Instance Method Details
#to_color ⇒ Object
293 294 295 |
# File 'lib/emfsvg/visitors/emr_visitor.rb', line 293 def to_color Emf::Model::Geometry::Color.new(red: r, green: g, blue: b) end |