Class: Lightwave::LightwaveObject::Colour
- Inherits:
-
SurfaceProperty
- Object
- SurfaceProperty
- Lightwave::LightwaveObject::Colour
- Defined in:
- lib/lightwave.rb
Instance Attribute Summary collapse
-
#rgb ⇒ Object
Returns the value of attribute rgb.
Attributes inherited from SurfaceProperty
Instance Method Summary collapse
-
#initialize(strio) ⇒ Colour
constructor
A new instance of Colour.
Constructor Details
#initialize(strio) ⇒ Colour
Returns a new instance of Colour.
164 165 166 |
# File 'lib/lightwave.rb', line 164 def initialize(strio) @rgb = strio.read_vector end |
Instance Attribute Details
#rgb ⇒ Object
Returns the value of attribute rgb.
163 164 165 |
# File 'lib/lightwave.rb', line 163 def rgb @rgb end |