|
1 | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
2 | 2 | <html lang="en"> |
3 | | -<!-- $Id: colors.src,v 2.10 1998-03-17 08:51:21 ijacobs Exp $ --> |
| 3 | +<!-- $Id: colors.src,v 2.11 1998-03-24 21:15:36 bbos Exp $ --> |
4 | 4 | <HEAD> |
5 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
6 | 6 | <TITLE>Colors and backgrounds</TITLE> |
@@ -66,20 +66,18 @@ property for the BODY element. If the resulting value is |
66 | 66 |
|
67 | 67 | <div class="html-example"><P> |
68 | 68 | According to these rules, the canvas underlying the following |
69 | | -HTML document will have a "marble" background and the background of the box |
70 | | -generated by the BODY element will be red: |
| 69 | +HTML document will have a "marble" background: |
71 | 70 |
|
72 | 71 | <PRE> |
73 | | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
74 | 72 | <HTML> |
75 | 73 | <HEAD> |
76 | 74 | <STYLE type="text/css"> |
77 | 75 | BODY { background: url(http://style.com/marble.png) } |
78 | 76 | </STYLE> |
79 | 77 | <TITLE>Setting the canvas background</TITLE> |
80 | 78 | </HEAD> |
81 | | - <BODY style="background: red"> |
82 | | - <P>My background is red. |
| 79 | + <BODY> |
| 80 | + <P>My background is marble. |
83 | 81 | </BODY> |
84 | 82 | </HTML> |
85 | 83 | </PRE> |
@@ -392,11 +390,11 @@ B'=B<SUP>gamma</SUP>, before handing to the OS. |
392 | 390 | once per browser invocation thus: |
393 | 391 |
|
394 | 392 | <PRE> |
395 | | - for i := 0 to 255 do |
396 | | - raw := i / 255.0; |
397 | | - corr := pow (raw, gamma); |
398 | | - table[i] := trunc (0.5 + corr * 255.0) |
399 | | - end |
| 393 | +for i := 0 to 255 do |
| 394 | + raw := i / 255.0; |
| 395 | + corr := pow (raw, gamma); |
| 396 | + table[i] := trunc (0.5 + corr * 255.0) |
| 397 | +end |
400 | 398 | </PRE> |
401 | 399 |
|
402 | 400 | <P>which then avoids any need to do transcendental math per color |
|
0 commit comments