|
1 | | -<h1>Color</h1> |
2 | | - |
3 | | -<p> |
4 | | -<table width="656"> |
5 | | - <tr> |
6 | | - |
7 | | -<p class="license">This tutorial is for Processing version 1.1+. If you see any errors or have comments, please <a href="https://github.com/processing/processing-docs/issues?state=open">let us know</a>. This tutorial is from the book, <a href="http://www.processing.org/learning/books/#shiffman">Learning Processing</a>, by Daniel Shiffman, published by Morgan Kaufmann Publishers, Copyright © 2008 Elsevier Inc. All rights reserved.</p> |
8 | | - |
9 | | - <p> </p> |
| 1 | +<table width="650"> |
| 2 | + <tr> |
| 3 | + <td> |
10 | 4 |
|
| 5 | + <p class="license"> |
| 6 | + This tutorial is from the book <a href="http://www.processing.org/learning/books/#shiffman">Learning Processing</a> by Daniel Shiffman, published by Morgan Kaufmann, © 2008 Elsevier Inc. All rights reserved. If you see any errors or have comments, please <a href="https://github.com/processing/processing-docs/issues?state=open">let us know</a>. |
| 7 | + </p> |
11 | 8 |
|
12 | | -<h3>Grayscale Color</h3> |
| 9 | + <h1 style="line-height: 0.7em;">Color</h1> |
| 10 | + <h3 style="line-height: 0.7em;"><em>Daniel Shiffman</em></h3> |
13 | 11 |
|
14 | | -In the digital world, when we want to talk about a color, precision is required. Saying "Hey, can you make that circle bluish-green?" will not do. Color, rather, is defined as a |
15 | | -range of numbers. Let's start with the simplest case: black & white or grayscale. 0 means black, 255 means white. In between, every other number - 50, 87, 162, 209, and so on - is a |
16 | | -shade of gray ranging from black to white. |
| 12 | + <p> |
| 13 | + In the digital world, when we want to talk about a color, precision is required. Saying "Hey, can you make that circle bluish-green?" will not do. Color, rather, is defined as a range of numbers. Let's start with the simplest case: black & white or grayscale. 0 means black, 255 means white. In between, every other number - 50, 87, 162, 209, and so on - is a shade of gray ranging from black to white. |
17 | 14 | <br /><br /> |
18 | 15 | <img src="imgs/grayscale.jpg" border="1"> |
19 | 16 | <br /><br /> |
@@ -165,11 +162,8 @@ <h3>Custom Color Ranges</h3> |
165 | 162 | With <a href="http://processing.org/reference/colorMode_.html"><strong>colorMode()</strong></a> you can set your own ranges for these values. Some prefer a range of 0-360 for hue (think of 360 degrees on a color wheel) and 0-100 for saturation and brightness (think of 0-100%). |
166 | 163 | </p> |
167 | 164 |
|
168 | | - <p> </p> |
169 | | - |
170 | | -<p class="license">This tutorial is for Processing version 1.1+. If you see any errors or have comments, please <a href="https://github.com/processing/processing-docs/issues?state=open">let us know</a>. This tutorial is from the book, <a href="http://www.processing.org/learning/books/#shiffman">Learning Processing</a>, by Daniel Shiffman, published by Morgan Kaufmann Publishers, Copyright © 2008 Elsevier Inc. All rights reserved.</p> |
171 | 165 |
|
172 | 166 | </td> |
173 | 167 | </tr> |
174 | 168 | </table> |
175 | | -</p> |
| 169 | + |
0 commit comments