Class: Lightwave::LightwaveObject::Colour

Inherits:
SurfaceProperty show all
Defined in:
lib/lightwave.rb

Instance Attribute Summary collapse

Attributes inherited from SurfaceProperty

#intensity

Instance Method Summary collapse

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

#rgbObject

Returns the value of attribute rgb.



163
164
165
# File 'lib/lightwave.rb', line 163

def rgb
  @rgb
end