Class: MagicaVoxel::Color

Inherits:
Struct
  • Object
show all
Defined in:
lib/magica_voxel.rb

Overview

The Voxel Color

Since:

  • 0.1.0

Instance Attribute Summary collapse

Instance Attribute Details

#aObject

Returns the value of attribute a

Returns:

  • (Object)

    the current value of a



35
36
37
# File 'lib/magica_voxel.rb', line 35

def a
  @a
end

#bObject

Returns the value of attribute b

Returns:

  • (Object)

    the current value of b



35
36
37
# File 'lib/magica_voxel.rb', line 35

def b
  @b
end

#gObject

Returns the value of attribute g

Returns:

  • (Object)

    the current value of g



35
36
37
# File 'lib/magica_voxel.rb', line 35

def g
  @g
end

#rObject

Returns the value of attribute r

Returns:

  • (Object)

    the current value of r



35
36
37
# File 'lib/magica_voxel.rb', line 35

def r
  @r
end