~pvigo/+junk/processing-3.1.2

« back to all changes in this revision

Viewing changes to debian/processing/usr/share/processing-3.1.2/modes/java/reference/emissive_.html

  • Committer: Pablo Vigo
  • Date: 2016-08-16 10:54:55 UTC
  • Revision ID: pvigo@xtec.cat-20160816105455-4y3x00r4w5anrpr4
2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 
2
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
3
        <head>
 
4
                <title>emissive() \ Language (API) \ Processing 2+</title>
 
5
 
 
6
                <link rel="icon" href="/favicon.ico" type="image/x-icon" />
 
7
 
 
8
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 
9
                <meta name="Author" content="Processing Foundation" />
 
10
                <meta name="Publisher" content="Processing Foundation" />
 
11
                <meta name="Keywords" content="Processing, Sketchbook, Programming, Coding, Code, Art, Design" />
 
12
                <meta name="Description" content="Processing is a flexible software sketchbook and a language for learning how to code within the context of the visual arts. Since 2001, Processing has promoted software literacy within the visual arts and visual literacy within technology." />
 
13
                <meta name="Copyright" content="All contents copyright the Processing Foundation, Ben Fry, Casey Reas, and the MIT Media Laboratory" />
 
14
 
 
15
                <script src="javascript/modernizr-2.6.2.touch.js" type="text/javascript"></script>
 
16
                <link href="css/style.css" rel="stylesheet" type="text/css" />
 
17
 
 
18
        </head>
 
19
        <body id="Langauge-en" onload="" >
 
20
 
 
21
                <!-- ==================================== PAGE ============================ -->
 
22
                <div id="container">
 
23
 
 
24
 
 
25
                        <!-- ==================================== HEADER ============================ -->
 
26
 
 
27
                        <div id="ribbon">
 
28
                                <ul class="left">
 
29
                                        <li class="highlight"><a href="http://processing.org/">Processing</a></li>
 
30
                                        <li><a href="http://p5js.org/">p5.js</a></li>
 
31
                                        <li><a href="http://py.processing.org/">Processing.py</a></li>
 
32
                                        <li><a href="http://android.processing.org/">Processing for Android</a></li>
 
33
                                </ul>
 
34
                                <ul class="right">
 
35
                                        <li><a href="https://processingfoundation.org/">Processing Foundation</a></li>
 
36
                                </ul>
 
37
                                <div class="clear"></div>
 
38
                        </div>
 
39
                        <div id="header">
 
40
                                <a href="/" title="Back to the Processing cover."><div class="processing-logo no-cover" alt="Processing cover"></div></a>
 
41
                                <form name="search" method="get" action="//www.google.com/search">
 
42
                                       <p><input type="hidden" name="as_sitesearch" value="processing.org" />
 
43
                                       <input type="text" name="as_q" value="" size="20" class="text" />
 
44
                                       <input type="submit" value=" " /></p>
 
45
                                </form>
 
46
                        </div>
 
47
                        <a id="TOP" name="TOP"></a>
 
48
 
 
49
                        <div id="navigation">
 
50
                                <div class="navBar" id="mainnav">
 
51
        <a href="index.html" class='active'>Language</a><br>
 
52
        <a href="libraries/index.html" >Libraries</a><br>
 
53
        <a href="tools/index.html">Tools</a><br>
 
54
        <a href="environment/index.html">Environment</a><br>
 
55
</div>
 
56
 
 
57
<script> document.querySelectorAll(".processing-logo")[0].className = "processing-logo"; </script>
 
58
                        </div>
 
59
 
 
60
                        <!-- ==================================== CONTENT - Headers ============================ -->
 
61
                        <div class="content">
 
62
 
 
63
                         <p class="ref-notice">This reference is for Processing 3.0+. If you have a previous version, use the reference included with your software in the Help menu. If you see any errors or have suggestions, <a href="https://github.com/processing/processing-docs/issues?state=open">please let us know</a>. If you prefer a more technical reference, visit the <a href="http://processing.github.io/processing-javadocs/core/">Processing Core Javadoc</a> and <a href="http://processing.github.io/processing-javadocs/libraries/">Libraries Javadoc</a>.</p>
 
64
 
 
65
<table cellpadding="0" cellspacing="0" border="0" class="ref-item">
 
66
 
 
67
 
 
68
        <tr class="name-row">
 
69
                <th scope="row">Name</th>
 
70
 
 
71
                <td><h3>emissive()</h3></td>
 
72
        </tr>
 
73
 
 
74
        <tr class="">
 
75
 
 
76
        <tr class=""><th scope="row">Examples</th><td><div class="example"><img src="images/emissive_.png" alt="example pic" /><pre class="margin">
 
77
size(100, 100, P3D);
 
78
background(0);
 
79
noStroke();
 
80
background(0);
 
81
directionalLight(204, 204, 204, .5, 0, -1);
 
82
emissive(0, 26, 51);
 
83
translate(70, 50, 0);
 
84
sphere(30);
 
85
</pre></div>
 
86
</td></tr>
 
87
 
 
88
                <tr class="">
 
89
                <th scope="row">Description</th>
 
90
                <td>
 
91
Sets the emissive color of the material used for drawing shapes drawn to the screen. Used in combination with <b>ambient()</b>, <b>specular()</b>, and <b>shininess()</b> in setting the material properties of shapes.
 
92
</td>
 
93
        </tr>
 
94
 
 
95
        <tr class=""><th scope="row">Syntax</th><td><pre>emissive(<kbd>rgb</kbd>)
 
96
emissive(<kbd>gray</kbd>)
 
97
emissive(<kbd>v1</kbd>, <kbd>v2</kbd>, <kbd>v3</kbd>)</pre></td></tr>
 
98
 
 
99
        <tr class="">   <th scope="row">Parameters</th><td><table cellpadding="0" cellspacing="0" border="0"><tr class="">
 
100
<th scope="row" class="code">rgb</th>
 
101
<td>int: color to set</td>
 
102
</tr>
 
103
<tr class="">
 
104
<th scope="row" class="code">v1</th>
 
105
<td>float: red or hue value (depending on current color mode)</td>
 
106
</tr>
 
107
<tr class="">
 
108
<th scope="row" class="code">v2</th>
 
109
<td>float: green or saturation value (depending on current color mode)</td>
 
110
</tr>
 
111
<tr class="">
 
112
<th scope="row" class="code">v3</th>
 
113
<td>float: blue or brightness value (depending on current color mode)</td>
 
114
</tr></table></td>      </tr>
 
115
        <tr class=""><th scope="row">Returns</th><td class="code">void</td></tr>
 
116
        <tr class=""><th scope="row">Related</th><td><a class="code" href="ambient_.html">ambient()</a><br />
 
117
<a class="code" href="specular_.html">specular()</a><br />
 
118
<a class="code" href="shininess_.html">shininess()</a><br /></td></tr>
 
119
</table>
 
120
 
 
121
Updated on June 24, 2016 00:34:48pm EDT<br /><br />
 
122
 
 
123
<!-- Creative Commons License -->
 
124
 
 
125
<div class="license">
 
126
        <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img alt="Creative Commons License" style="border: none" src="http://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" /></a>
 
127
</div>
 
128
<!--
 
129
 
 
130
<?xpacket begin='' id=''?>
 
131
<x:xmpmeta xmlns:x='adobe:ns:meta/'>
 
132
  <rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
 
133
    <rdf:Description rdf:about=''
 
134
                     xmlns:xapRights='http://ns.adobe.com/xap/1.0/rights/'>
 
135
      <xapRights:Marked>True</xapRights:Marked>
 
136
    </rdf:Description>
 
137
    <rdf:Description rdf:about=''
 
138
                     xmlns:xapRights='http://ns.adobe.com/xap/1.0/rights/'
 
139
                     >
 
140
      <xapRights:UsageTerms>
 
141
        <rdf:Alt>
 
142
          <rdf:li xml:lang='x-default' >This work is licensed under a &lt;a rel=&#34;license&#34; href=&#34;http://creativecommons.org/licenses/by-nc-sa/4.0/&#34;&gt;Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License&lt;/a&gt;.</rdf:li>
 
143
          <rdf:li xml:lang='en' >This work is licensed under a &lt;a rel=&#34;license&#34; href=&#34;http://creativecommons.org/licenses/by-nc-sa/4.0/&#34;&gt;Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License&lt;/a&gt;.</rdf:li>
 
144
          </rdf:Alt>
 
145
      </xapRights:UsageTerms>
 
146
    </rdf:Description>
 
147
    <rdf:Description rdf:about=''
 
148
      xmlns:cc='http://creativecommons.org/ns#'>
 
149
      <cc:license rdf:resource='http://creativecommons.org/licenses/by-nc-sa/4.0/'/>
 
150
    </rdf:Description>
 
151
 
 
152
  </rdf:RDF>
 
153
</x:xmpmeta>
 
154
<?xpacket end='r'?>
 
155
 
 
156
-->
 
157
 
 
158
                        </div>
 
159
 
 
160
                        <!-- ==================================== FOOTER ============================ -->
 
161
                        <div id="footer">
 
162
 
 
163
                        <div id="copyright">Processing is an open project intiated by <a href="http://benfry.com/">Ben Fry</a> and <a href="http://reas.com">Casey Reas</a>. It is developed by a <a href="http://processing.org/about/people/">team of volunteers</a>.</div>
 
164
                        <div id="colophon">
 
165
 
 
166
                    <a href="copyright.html">&copy; Info</a>
 
167
 
 
168
                </div>
 
169
                        </div>
 
170
 
 
171
                </div>
 
172
                <script src="javascript/jquery-1.9.1.min.js"></script>
 
173
                <script src="javascript/site.js" type="text/javascript"></script>
 
174
        </body>
 
175
</html>