<?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=API%2Fcolors</id>
	<title>API/colors - 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=API%2Fcolors"/>
	<link rel="alternate" type="text/html" href="https://ocr.michiyo.me/w/index.php?title=API/colors&amp;action=history"/>
	<updated>2026-08-24T13:46: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=API/colors&amp;diff=1018&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=API/colors&amp;diff=1018&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;= Colors API =&lt;br /&gt;
&lt;br /&gt;
This &amp;quot;API&amp;quot; serves a global table that allows you to refer to colors by their name, instead of their associated ID/number. The table serves as a look-up in both directions, so for example `colors.blue` has the value `11`, whereas `colors[11]` has the string value `blue`. These are the defined colors:&lt;br /&gt;
&lt;br /&gt;
* White (`white`), Number: 0 - Orange (`orange`), Number: 1 - Magenta (`magenta`), Number: 2 - Light Blue (`lightblue`), Number: 3 - Yellow (`yellow`), Number: 4 - Lime (`lime`), Number: 5 - Pink (`pink`), Number: 6 - Gray (`gray`), Number: 7 - Silver (`silver`), Number: 8 - Cyan (`cyan`), Number: 9 - Purple (`purple`), Number: 10 - Blue (`blue`), Number: 11 - Brown (`brown`), Number: 12 - Green (`green`), Number: 13 - Red (`red`), Number: 14 - Black (`black`), Number: 15&lt;br /&gt;
&lt;br /&gt;
Note that the indexing starts at zero, not one.&lt;br /&gt;
&lt;br /&gt;
Useful for setting or getting bundled redstone output or input, for example: ```lua local component = require(&amp;quot;component&amp;quot;) local colors = require(&amp;quot;colors&amp;quot;) local rs = component.redstone rs.setBundledOutput(sides.back, colors.green, rs.getBundledInput(sides.front, colors.blue)) ``` would output the back signal strength to the front.&lt;br /&gt;
&lt;br /&gt;
== Contents ==&lt;br /&gt;
&lt;br /&gt;
{{:API/contents}}&lt;br /&gt;
&lt;/div&gt;</summary>
		<author><name>imported&gt;OCDoc Import</name></author>
	</entry>
</feed>