Skip to content

Commit 5656a87

Browse files
committed
Adjust CSS line height for Tutorials
1 parent f1229e7 commit 5656a87

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

content/static/tutorials/color/index.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,13 @@ <h3 style="line-height: 0.7em;"><em>Daniel Shiffman</em></h3>
1313
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.
1414
<br /><br />
1515

16-
<img src="imgs/grayscale.jpg" border="1">
16+
<img src="imgs/grayscale.jpg" border="1" class="tut">
1717

18-
<br /><br />
1918
<p class="license">
2019
<em>Does 0-255 seem arbitrary to you?</em><br />
2120
Color for a given shape needs to be stored in the computer's memory. This memory is just a long sequence of 0's and 1's (a whole bunch of on or off switches.) Each one of these switches is a bit, eight of them together is a byte. Imagine if we had eight bits (one byte) in sequence - how many ways can we configure these switches? The answer is (and doing a little <a href="http://en.wikipedia.org/wiki/Binary_number">research into binary numbers</a> will prove this point) 256 possibilities, or a range of numbers between 0 and 255. We will use eight bit color for our grayscale range and 24 bit for full color (eight bits for each of the red, green, and blue color components).
2221
</p>
2322

24-
<br /><br />
25-
2623
By adding the <strong><a href="http://processing.org/reference/stroke_.html">stroke()</a></strong> and <strong><a href="http://processing.org/reference/fill_.html">fill()</a></strong> functions before something is drawn, we can set the color of any given shape. There is also the function <strong><a href="http://processing.org/reference/background_.html">background()</a></strong>, which sets a background color for the window. Here's an example.
2724

2825
<br /><br />

content/static/tutorials/gettingstarted/index.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
</p>
88

99
<h1 style="line-height: 0.7em;">Getting Started</h1>
10-
<h3 style="line-height: 0.7em;"><em>Casey Reas and Ben Fry</em></h3>
11-
12-
<p>&nbsp;</p>
10+
<h3 style="line-height: 0.5em;"><em>Casey Reas and Ben Fry</em></h3>
1311

1412
<p class="txt">Welcome to Processing! Start by visiting <a href="http://processing.org/download">http://processing.org/download</a> and selecting the Mac, Windows, or Linux version, depending on what machine you have. Installation on each machine is straightforward:</p>
1513

css/style.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,9 +1179,9 @@ h2 { margin-bottom: 0; margin-top: 0;}
11791179
#Tutorials p.txt {
11801180
margin-top: 0em;
11811181
margin-bottom: 2em;
1182-
font-size: 110%;
1182+
font-size: 100%;
11831183
font-weight: normal;
1184-
line-height: 200%;
1184+
line-height: 150%;
11851185
}
11861186

11871187
/************************************************************** Books ***/

0 commit comments

Comments
 (0)