Class: MagicaVoxel::Pattle
Overview
The Chunk type RGBA
Constant Summary
Constants inherited from Chunk
Instance Attribute Summary collapse
- #pattle ⇒ Object readonly
Instance Method Summary collapse
-
#[](id) ⇒ MagicVoxel::Color
Get color by index.
-
#inspect ⇒ Object
:nodoc.
Methods inherited from Chunk
#each, header, #initialize, read
Constructor Details
This class inherits a constructor from MagicaVoxel::Chunk
Instance Attribute Details
#pattle ⇒ Object (readonly)
9 10 11 |
# File 'lib/magica_voxel/pattle.rb', line 9 def pattle @pattle end |
Instance Method Details
#[](id) ⇒ MagicVoxel::Color
Get color by index
18 19 20 |
# File 'lib/magica_voxel/pattle.rb', line 18 def [](id) @pattle[id] end |
#inspect ⇒ Object
:nodoc
25 26 27 |
# File 'lib/magica_voxel/pattle.rb', line 25 def inspect '#<MagicaVoxel::Pattle>' end |