Class: MagicaVoxel::Voxel

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

Overview

The Voxel Data

Since:

  • 0.1.0

Instance Attribute Summary collapse

Instance Attribute Details

#colorObject

Returns the value of attribute color

Returns:

  • (Object)

    the current value of color



30
31
32
# File 'lib/magica_voxel.rb', line 30

def color
  @color
end

#xObject

Returns the value of attribute x

Returns:

  • (Object)

    the current value of x



30
31
32
# File 'lib/magica_voxel.rb', line 30

def x
  @x
end

#yObject

Returns the value of attribute y

Returns:

  • (Object)

    the current value of y



30
31
32
# File 'lib/magica_voxel.rb', line 30

def y
  @y
end

#zObject

Returns the value of attribute z

Returns:

  • (Object)

    the current value of z



30
31
32
# File 'lib/magica_voxel.rb', line 30

def z
  @z
end