<refentry id="glutGetColor.3GLUT">
	<refmeta id="glutGetColor.3GLUT-meta">
		<refentrytitle>glutGetColor</refentrytitle>
		<manvolnum>3GLUT</manvolnum>
	</refmeta>
	<refnamediv id="glutGetColor.3GLUT-name">
		<refname>glutGetColor</refname>
		<refpurpose>retrieves a red, green, or blue component for a given color index colormap entry for the layer in use's logical
		colormap for the current window.</refpurpose>
	</refnamediv>
	<refsynopsisdiv id="glutGetColor.3GLUT-c_spec">
		<title>C Specification</title>
		<funcsynopsis>
			<funcprototype>
				<funcdef>GLfloat&nbsp;<function>glutGetColor</function></funcdef>
				<paramdef>int&nbsp;<parameter>cell</parameter></paramdef>
				<paramdef>int&nbsp;<parameter>component</parameter></paramdef>
			</funcprototype>
		</funcsynopsis>
	</refsynopsisdiv>
	<refsect1 id="glutGetColor.3GLUT-parameters">
		<title>Parameters</title>
		<variablelist>
			<varlistentry>
				<term><parameter>cell</parameter></term>
				<listitem>
					<simpara>
						Color cell index (starting at zero).
					</simpara>
				</listitem>
			</varlistentry>
			<varlistentry>
				<term><parameter>component</parameter></term>
				<listitem>
					<simpara>
						One of <constant>GLUT_RED</constant>, <constant>GLUT_GREEN</constant>, or <constant>GLUT_BLUE</constant>.
					</simpara>
				</listitem>
			</varlistentry>
		</variablelist>
	</refsect1>
	<refsect1 id="glutGetColor.3GLUT-description">
		<title>Description</title>
		<para>
			<function>glutGetColor</function> retrieves a red, green, or blue component for a given color index colormap entry for
			the current window's logical colormap. The current window should be a color index window. cell should be zero or
			greater and less than the total number of colormap entries for the window. For valid color indices, the value returned
			is a floating point value between 0.0 and 1.0 inclusive. <function>glutGetColor</function> will return -1.0 if the
			color index specified is an overlay's transparent index, less than zero, or greater or equal to the value returned by
			<function moreinfo="refentry">glutGet(GLUT_WINDOW_COLORMAP_SIZE)</function>, that is if the color index is transparent
			or outside the valid range of color indices.
		</para>
	</refsect1>
	<refsect1 id="glutGetColor.3GLUT-see_also">
		<title>See Also</title>
		<para>
			<simplelist type="inline">
				<member><citerefentry>
					<refentrytitle>glutGet</refentrytitle>
					<manvolnum>3GLUT</manvolnum>
				</citerefentry></member>
				<member><citerefentry>
					<refentrytitle>glutSetColor</refentrytitle>
					<manvolnum>3GLUT</manvolnum>
				</citerefentry></member>
				<member><citerefentry>
					<refentrytitle>glutCopyColormap</refentrytitle>
					<manvolnum>3GLUT</manvolnum>
				</citerefentry></member>
			</simplelist>
		</para>
	</refsect1>
</refentry>
