Skip to content

Commit c8e7408

Browse files
committed
Remove gamma correction section per working group resolution for Issue 8.
1 parent 96c8c1a commit c8e7408

2 files changed

Lines changed: 0 additions & 122 deletions

File tree

css3-color/Overview.html

Lines changed: 0 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -285,10 +285,6 @@ <h2 class="no-num no-toc" id=contents>Table of Contents</h2>
285285
<li><a href="#foreground"><span class=secno>3.1. </span>Foreground
286286
color: the <span class=property>&lsquo;<code
287287
class=property>color</code>&rsquo;</span> property</a>
288-
<ul class=toc>
289-
<li><a href="#gamma"><span class=secno>3.1.1. </span>Gamma
290-
correction</a>
291-
</ul>
292288

293289
<li><a href="#transparency"><span class=secno>3.2. </span>Transparency:
294290
the <span class=property>&lsquo;<code
@@ -527,58 +523,6 @@ <h3 id=foreground><span class=secno>3.1. </span>Foreground color: the <span
527523
section.
528524
</dl>
529525

530-
<h4 id=gamma><span class=secno>3.1.1. </span>Gamma correction</h4>
531-
532-
<p><em>For information about gamma issues, please consult the Gamma
533-
Tutorial in the PNG specification (<a href="#PNG2e"
534-
rel=biblioentry>[PNG2e]<!--{{!PNG2e}}--></a>).</em>
535-
536-
<p> In the computation of gamma correction, UAs displaying on a <abbr
537-
title="cathode ray tube">CRT</abbr> may assume an ideal CRT and ignore any
538-
effects on apparent gamma caused by dithering. That means the minimal
539-
handling they need to do on current platforms is:
540-
541-
<dl>
542-
<dt> PC using MS-Windows
543-
544-
<dd> none
545-
546-
<dt> Unix using X11
547-
548-
<dd> none
549-
550-
<dt> Mac using QuickDraw
551-
552-
<dd> apply gamma 1.45 <a href="#ICC42"
553-
rel=biblioentry>[ICC42]<!--{{!ICC42}}--></a> (ColorSync-savvy
554-
applications may simply pass the sRGB ICC profile to ColorSync to perform
555-
correct color correction)
556-
557-
<dt> SGI using X
558-
559-
<dd> apply the gamma value from <tt>/etc/config/system.glGammaVal</tt>
560-
(the default value being 1.70; applications running on Irix 6.2 or above
561-
may simply pass the sRGB ICC profile to the color management system)
562-
</dl>
563-
564-
<p>"Applying gamma" means that each of the three R, G and B must be
565-
converted to R'=R<sup>gamma</sup>, G'=G<sup>gamma</sup>,
566-
B'=B<sup>gamma</sup>, before being handed to the OS.
567-
568-
<p>This may rapidly be done by building a 256-element lookup table once per
569-
browser invocation thus:
570-
571-
<pre>
572-
for i := 0 to 255 do
573-
raw := i / 255.0;
574-
corr := pow (raw, gamma);
575-
table[i] := trunc (0.5 + corr * 255.0)
576-
end
577-
</pre>
578-
579-
<p>which then avoids any need to do transcendental math per color value,
580-
far less per pixel.
581-
582526
<h3 id=transparency><span class=secno>3.2. </span>Transparency: the <span
583527
class=property>&lsquo;<code class=property><a
584528
href="#opacity">opacity</a></code>&rsquo;</span> property</h3>
@@ -4928,27 +4872,6 @@ <h3 id=normative><span class=secno>11.1. </span>Normative</h3>
49284872
</dd>
49294873
<!---->
49304874

4931-
<dt id=ICC42>[ICC42]
4932-
4933-
<dd><a href="http://color.org/ICC1v42_2006-05.pdf"><cite>Image technology
4934-
colour management &#8212; Architecture, profile format, and data
4935-
structure.</cite></a> International Color Consortium. Specification
4936-
ICC.1:2004-10 (Profile version 4.2.0.0) With errata incorporated,
4937-
5/22/2006. URL: <a
4938-
href="http://color.org/ICC1v42_2006-05.pdf">http://color.org/ICC1v42_2006-05.pdf</a>
4939-
</dd>
4940-
<!---->
4941-
4942-
<dt id=PNG2e>[PNG2e]
4943-
4944-
<dd>David Duce. <a
4945-
href="http://www.w3.org/TR/2003/REC-PNG-20031110"><cite>Portable Network
4946-
Graphics (PNG) Specification (Second Edition).</cite></a> 10 November
4947-
2003. W3C Recommendation. URL: <a
4948-
href="http://www.w3.org/TR/2003/REC-PNG-20031110">http://www.w3.org/TR/2003/REC-PNG-20031110</a>
4949-
</dd>
4950-
<!---->
4951-
49524875
<dt id=SRGB>[SRGB]
49534876

49544877
<dd><a href="http://www.iec.ch/nr1899.htm"><cite>Multimedia systems and

css3-color/Overview.src.html

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -338,51 +338,6 @@ <h3 id="foreground">Foreground color: the <span class="property">'color'</span>
338338
</dd>
339339
</dl>
340340

341-
<h4 id="gamma">Gamma correction</h4>
342-
343-
<p><em>For information about gamma issues, please consult the
344-
Gamma Tutorial in the PNG specification ([[!PNG2e]]).</em></p>
345-
346-
<p> In the computation of gamma correction, UAs displaying on a <abbr title="cathode ray tube">CRT</abbr>
347-
may assume an ideal CRT and ignore any effects on apparent gamma
348-
caused by dithering. That means the minimal handling they need to do
349-
on current platforms is:
350-
</p>
351-
<dl>
352-
<dt> PC using MS-Windows</dt>
353-
<dd> none </dd>
354-
<dt> Unix using X11 </dt>
355-
<dd> none </dd>
356-
<dt> Mac using QuickDraw </dt>
357-
<dd> apply gamma 1.45 [[!ICC42]] (ColorSync-savvy applications
358-
may simply pass the sRGB ICC profile to ColorSync
359-
to perform correct color correction) </dd>
360-
<dt> SGI using X </dt>
361-
<dd> apply the gamma value from
362-
<tt>/etc/config/system.glGammaVal</tt> (the default value being
363-
1.70; applications running on Irix 6.2 or above may simply pass
364-
the sRGB ICC profile to the color management system) </dd>
365-
</dl>
366-
367-
<p>"Applying gamma" means that each of the three R, G and B must be
368-
converted to R'=R<sup>gamma</sup>, G'=G<sup>gamma</sup>,
369-
B'=B<sup>gamma</sup>, before being handed to the OS.
370-
</p>
371-
<p>This may rapidly be done by building a 256-element lookup table
372-
once per browser invocation thus:
373-
</p>
374-
<pre>
375-
for i := 0 to 255 do
376-
raw := i / 255.0;
377-
corr := pow (raw, gamma);
378-
table[i] := trunc (0.5 + corr * 255.0)
379-
end
380-
</pre>
381-
382-
<p>which then avoids any need to do transcendental math per color
383-
value, far less per pixel.
384-
</p>
385-
386341
<h3 id="transparency">Transparency: the <span class="property">'opacity'</span> property</h3>
387342

388343
<p>

0 commit comments

Comments
 (0)