<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://ocr.michiyo.me/w/index.php?action=history&amp;feed=atom&amp;title=Component%2Fhologram</id>
	<title>Component/hologram - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://ocr.michiyo.me/w/index.php?action=history&amp;feed=atom&amp;title=Component%2Fhologram"/>
	<link rel="alternate" type="text/html" href="https://ocr.michiyo.me/w/index.php?title=Component/hologram&amp;action=history"/>
	<updated>2026-08-24T13:51:30Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://ocr.michiyo.me/w/index.php?title=Component/hologram&amp;diff=1170&amp;oldid=prev</id>
		<title>imported&gt;OCDoc Import: Imported from legacy OpenComputers documentation at ocdoc.cil.li</title>
		<link rel="alternate" type="text/html" href="https://ocr.michiyo.me/w/index.php?title=Component/hologram&amp;diff=1170&amp;oldid=prev"/>
		<updated>2026-08-24T08:08:27Z</updated>

		<summary type="html">&lt;p&gt;Imported from legacy OpenComputers documentation at ocdoc.cil.li&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Component: Hologram =&lt;br /&gt;
&lt;br /&gt;
This component is provided by the [[Block/hologram projector|Hologram Projector]]. These can be used to create holographic projections in a resolution of 48x32x48, over a maximum area of 9x6x9 blocks. Tier two holograms do not provide a higher resolution, instead they allow using up to three colors in the displayed hologram (as opposed to just one for the tier one hologram).&lt;br /&gt;
&lt;br /&gt;
Component name: `hologram`. Callbacks:&lt;br /&gt;
&lt;br /&gt;
* `clear()`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Clears the hologram.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* `get(x:number, y:number, z:number):number`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Returns the value at the specified position.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* `set(x:number, y:number, z:number, value:number or boolean)`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Set the value for the specified position.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* `fill(x:number, z:number[, minY:number], maxY:number, value:number)`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Fills an interval in the specified column column with the specified value. Will overwrite only the voxels in the interval. If `minY` is omitted it defaults to 1. The two interval ends are inclusive.  &lt;br /&gt;
//Note:// Before 1.3.3 there was no `minY` argument and all voxels below and including the specified height would be set, all voxels above would be unset.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* `copy(x:number, z:number, sx:number, sz:number, tx:number, tz:number)`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Copies an area of columns by the specified translation.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* `getScale():number`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Returns the current render scale of the hologram.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* `setScale(value:number)`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Set the render scale. A larger scale consumes more energy. The minimum scale is 0.33, where the hologram will fit in a single block space, the maximum scale is 3, where the hologram will take up a 9x6x9 block space.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* `getTranslation:number, number, number`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Return the current translation offset.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* `setTranslation(x:number, y:number, z:number)`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Set the translation vector. The hologram display will be offset by this vector from its normal location. The maximum allowable translation is a function of tier. Units are the hologram&amp;#039;s size, so the distance translated increases and decreases with scale as well.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* `maxDepth():number`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;The color depth supported by the hologram.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* `getPaletteColor(index:number):number`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Get the hex color defined for the specified value.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* `setPaletteColor(index:number, value:number):number`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Set the hex color defined for the specified value.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Simple example program that allows setting individual voxels: ```lua local component = require(&amp;quot;component&amp;quot;) local hologram = component.hologram local args = {...} hologram.set(tonumber(args[1]), tonumber(args[2]), tonumber(args[3]), args[4] == &amp;quot;true&amp;quot; or args[4] == &amp;quot;on&amp;quot;) ```&lt;br /&gt;
&lt;br /&gt;
Example use (assuming it&amp;#039;s saved as `holo-set.lua`): `# holo-set 16 8 20 true`&lt;br /&gt;
&lt;br /&gt;
Further examples:&lt;br /&gt;
&lt;br /&gt;
* [Holo Flow](https://github.com/OpenPrograms/Sangar-Programs/blob/master/holo-flow.lua)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;This program generates a heightmap and &amp;#039;moves&amp;#039; across it over time, creating the effect of a flowing terrain.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* [Holo Text](https://github.com/OpenPrograms/Sangar-Programs/blob/master/holo-text.lua)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;This program generates a random heightmap and displays scrolling text above it.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
== Note, the second example is quite a bit more advanced then the first. &amp;#039;&amp;#039;&amp;#039;Important&amp;#039;&amp;#039;&amp;#039;: both scripts also need the [noise.lua](https://github.com/OpenPrograms/Sangar-Programs/blob/master/noise.lua) script to be in the same folder. ==&lt;br /&gt;
&lt;br /&gt;
{{:Component/contents}}&lt;br /&gt;
&lt;/div&gt;</summary>
		<author><name>imported&gt;OCDoc Import</name></author>
	</entry>
</feed>