/usr/share/doc/mathgl/mathgl_en/mathgl_en_76.html is in mathgl-doc-en 2.1.3.1-4ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
<html>
<!-- This manual is for MathGL (version 2.1.2), a collection of classes and routines for scientific plotting. Please report any errors in this manual to mathgl.abalakin@gmail.org.
Copyright C 2008-2012 Alexey A. Balakin.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.2
or any later version published by the Free Software Foundation;
with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
Texts. A copy of the license is included in the section entitled "GNU
Free Documentation License."
-->
<!-- Created on December 22, 2013 by texi2html 1.82
texi2html was written by:
Lionel Cons <Lionel.Cons@cern.ch> (original author)
Karl Berry <karl@freefriends.org>
Olaf Bachmann <obachman@mathematik.uni-kl.de>
and many others.
Maintained by: Many creative people.
Send bugs and suggestions to <texi2html-bug@nongnu.org>
-->
<head>
<title>MathGL 2.1.2: 9.3 mglColor class</title>
<meta name="description" content="MathGL 2.1.2: 9.3 mglColor class">
<meta name="keywords" content="MathGL 2.1.2: 9.3 mglColor class">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="texi2html 1.82">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.smallquotation {font-size: smaller}
pre.display {font-family: serif}
pre.format {font-family: serif}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: serif; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: serif; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.roman {font-family:serif; font-weight:normal;}
span.sansserif {font-family:sans-serif; font-weight:normal;}
ul.toc {list-style: none}
-->
</style>
</head>
<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
<a name="mglColor-class"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="mathgl_en_75.html#mglDataA-class" title="Previous section in reading order"> < </a>]</td>
<td valign="middle" align="left">[<a href="mathgl_en_77.html#mglPoint-class" title="Next section in reading order"> > </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="mathgl_en_73.html#Other-classes" title="Beginning of this chapter or previous chapter"> << </a>]</td>
<td valign="middle" align="left">[<a href="mathgl_en_73.html#Other-classes" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="mathgl_en_78.html#Symbols-and-hot_002dkeys" title="Next chapter"> >> </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="mathgl_en.html#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="mathgl_en_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="mathgl_en_88.html#Index" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="mathgl_en_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="mglColor-class-1"></a>
<h2 class="section">9.3 mglColor class</h2>
<a name="index-mglColor"></a>
<p>Structure for working with colors. This structure is defined in <code>#include <mgl2/type.h></code>.
</p>
<p>There are two ways to set the color in MathGL. First one is using of mreal values of red, green and blue channels for precise color definition. The second way is the using of character id. There are a set of characters specifying frequently used colors. Normally capital letter gives more dark color than lowercase one. See section <a href="mathgl_en_23.html#Line-styles">Line styles</a>.
</p>
<dl>
<dt><a name="index-r_002c-g_002c-b_002c-a-of-mglColor"></a><u>Parameter of mglColor:</u> <code>mreal</code> <b>r, g, b, a</b></dt>
<dd><p>Reg, green and blue component of color.
</p></dd></dl>
<dl>
<dt><a name="index-mglColor-on-mglColor"></a><u>Method on mglColor:</u> <code></code> <b>mglColor</b><i> (<code>mreal</code> R, <code>mreal</code> G, <code>mreal</code> B, <code>mreal</code> A=<code>1</code>)</i></dt>
<dd><p>Constructor sets the color by mreal values of Red, Green, Blue and Alpha channels. These values should be in interval [0,1].
</p></dd></dl>
<dl>
<dt><a name="index-mglColor-on-mglColor-1"></a><u>Method on mglColor:</u> <code></code> <b>mglColor</b><i> (<code>char</code> c=<code>'k'</code>, <code>mreal</code> bright=<code>1</code>)</i></dt>
<dd><p>Constructor sets the color from character id. The black color is used by default. Parameter <var>br</var> set additional “lightness” of color.
</p></dd></dl>
<dl>
<dt><a name="index-Set-on-mglColor"></a><u>Method on mglColor:</u> <code>void</code> <b>Set</b><i> (<code>mreal</code> R, <code>mreal</code> G, <code>mreal</code> B, <code>mreal</code> A=<code>1</code>)</i></dt>
<dd><p>Sets color from values of Red, Green, Blue and Alpha channels. These values should be in interval [0,1].
</p></dd></dl>
<dl>
<dt><a name="index-Set-on-mglColor-1"></a><u>Method on mglColor:</u> <code>void</code> <b>Set</b><i> (<code>mglColor</code> c, <code>mreal</code> bright=<code>1</code>)</i></dt>
<dd><p>Sets color as “lighted” version of color <var>c</var>.
</p></dd></dl>
<dl>
<dt><a name="index-Set-on-mglColor-2"></a><u>Method on mglColor:</u> <code>void</code> <b>Set</b><i> (<code>char</code> p, <code>mreal</code> bright=<code>1</code>)</i></dt>
<dd><p>Sets color from symbolic id.
</p></dd></dl>
<dl>
<dt><a name="index-Valid-on-mglColor"></a><u>Method on mglColor:</u> <code>bool</code> <b>Valid</b><i> ()</i></dt>
<dd><p>Checks correctness of the color.
</p></dd></dl>
<dl>
<dt><a name="index-Norm-on-mglColor"></a><u>Method on mglColor:</u> <code>mreal</code> <b>Norm</b><i> ()</i></dt>
<dd><p>Gets maximal of spectral component.
</p></dd></dl>
<dl>
<dt><a name="index-operator_003d_003d-on-mglColor"></a><u>Method on mglColor:</u> <code>bool</code> <b>operator==</b><i> (<code>const mglColor &</code>c)</i></dt>
<dt><a name="index-operator_0021_003d-on-mglColor"></a><u>Method on mglColor:</u> <code>bool</code> <b>operator!=</b><i> (<code>const mglColor &</code>c)</i></dt>
<dd><p>Compare with another color
</p></dd></dl>
<dl>
<dt><a name="index-operator_002a_003d-on-mglColor"></a><u>Method on mglColor:</u> <code>bool</code> <b>operator*=</b><i> (<code>mreal</code> v)</i></dt>
<dd><p>Multiplies color components by number <var>v</var>.
</p></dd></dl>
<dl>
<dt><a name="index-operator_002b_003d-on-mglColor"></a><u>Method on mglColor:</u> <code>bool</code> <b>operator+=</b><i> (<code>const mglColor &</code>c)</i></dt>
<dd><p>Adds color <var>c</var> component by component.
</p></dd></dl>
<dl>
<dt><a name="index-operator_002d_003d-on-mglColor"></a><u>Method on mglColor:</u> <code>bool</code> <b>operator-=</b><i> (<code>const mglColor &</code>c)</i></dt>
<dd><p>Subtracts color <var>c</var> component by component.
</p></dd></dl>
<dl>
<dt><a name="index-operator_002b-3"></a><u>Library Function:</u> mglColor <b>operator+</b><i> (<code>const mglColor &</code>a, <code>const mglColor &</code>b)</i></dt>
<dd><p>Adds colors by its RGB values.
</p></dd></dl>
<dl>
<dt><a name="index-operator_002d-3"></a><u>Library Function:</u> <code>mglColor</code> <b>operator-</b><i> (<code>const mglColor &</code>a, <code>const mglColor &</code>b)</i></dt>
<dd><p>Subtracts colors by its RGB values.
</p></dd></dl>
<dl>
<dt><a name="index-operator_002a-3"></a><u>Library Function:</u> <code>mglColor</code> <b>operator*</b><i> (<code>const mglColor &</code>a, <code>mreal</code> b)</i></dt>
<dt><a name="index-operator_002a-4"></a><u>Library Function:</u> <code>mglColor</code> <b>operator*</b><i> (<code>mreal</code> a, <code>const mglColor &</code>b)</i></dt>
<dd><p>Multiplies color by number.
</p></dd></dl>
<dl>
<dt><a name="index-operator_002f-2"></a><u>Library Function:</u> <code>mglColor</code> <b>operator/</b><i> (<code>const mglColor &</code>a, <code>mreal</code> b)</i></dt>
<dd><p>Divide color by number.
</p></dd></dl>
<dl>
<dt><a name="index-operator_0021"></a><u>Library Function:</u> <code>mglColor</code> <b>operator!</b><i> (<code>const mglColor &</code>a)</i></dt>
<dd><p>Return inverted color.
</p></dd></dl>
<hr size="6">
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="mathgl_en_75.html#mglDataA-class" title="Previous section in reading order"> < </a>]</td>
<td valign="middle" align="left">[<a href="mathgl_en_77.html#mglPoint-class" title="Next section in reading order"> > </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="mathgl_en_73.html#Other-classes" title="Beginning of this chapter or previous chapter"> << </a>]</td>
<td valign="middle" align="left">[<a href="mathgl_en_73.html#Other-classes" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="mathgl_en_78.html#Symbols-and-hot_002dkeys" title="Next chapter"> >> </a>]</td>
</tr></table>
<p>
<font size="-1">
This document was generated by <em>Build Daemon user</em> on <em>December 22, 2013</em> using <a href="http://www.nongnu.org/texi2html/"><em>texi2html 1.82</em></a>.
</font>
<br>
</p>
</body>
</html>
|