From b677b1ba6a1663b8ff97066c1e5b84854e130ab8 Mon Sep 17 00:00:00 2001 From: CokaCola Date: Mon, 17 Mar 2014 17:02:33 -0700 Subject: [PATCH] Created Component Hologram (markdown) --- Component-Hologram.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Component-Hologram.md 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