diff --git a/Component-Hologram.md b/Component-Hologram.md new file mode 100644 index 0000000..46e1265 --- /dev/null +++ b/Component-Hologram.md @@ -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. \ No newline at end of file