Created Component Hologram (markdown)

CokaCola 2014-03-17 17:02:33 -07:00
parent 807b43b52b
commit b677b1ba6a

24
Component-Hologram.md Normal file

@ -0,0 +1,24 @@
This component is provided by the Hologram Emitter.
These can be used to create holographic projections in a maximum area of 48x32x48.
Component name: `hologram`.
Callbacks:
- `clear()`
Clears the hologram.
- `get(x:number, z:number):number`
Returns the bit mask representing the specified column.
- `set(x:number, z:number, value:number)`
Set the bit mask for the specified column.
- `fill(x:number, z:number, height:number)`
Fills a column to the specified height.
- `getScale():number`
Returns the render scale of the hologram.
- `setScale(value:number)`
Set the render scale. A larger scale consumes more energy.
Example usage(programs below created by Sangar):
[https://github.com/OpenPrograms/Sangar-Programs/blob/master/holo-flow.lua](Holo Flow) --Generates a heightmap and 'moves' across it over time, creating the effect of a flowing terrain.
[https://github.com/OpenPrograms/Sangar-Programs/blob/master/holo-text.lua](Holo Text) --Generates a random heightmap and displays scrolling text above it.
Note, the second example is quite a bit more advanced then the first.