Class: Emfsvg::Visitors::EmrVisitor::ColorRGB

Inherits:
Struct
  • Object
show all
Defined in:
lib/emfsvg/visitors/emr_visitor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bObject

Returns the value of attribute b

Returns:

  • (Object)

    the current value of b



292
293
294
# File 'lib/emfsvg/visitors/emr_visitor.rb', line 292

def b
  @b
end

#gObject

Returns the value of attribute g

Returns:

  • (Object)

    the current value of g



292
293
294
# File 'lib/emfsvg/visitors/emr_visitor.rb', line 292

def g
  @g
end

#rObject

Returns the value of attribute r

Returns:

  • (Object)

    the current value of r



292
293
294
# File 'lib/emfsvg/visitors/emr_visitor.rb', line 292

def r
  @r
end

Instance Method Details

#to_colorObject



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