<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2006 rel. 3 sp1 (http://www.altova.com) by Ben Caldwell (W3C) -->
<!-- use of valid doctype here breaks IE DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
        "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd"-->
<?xml-stylesheet type="text/xsl" href="mathml.xsl"?>
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link type="text/css" rel="stylesheet" href="http://www.w3.org/StyleSheets/TR/base.css"/>
    <title>Versione MathML della definizione di luminanza relativa</title>
  </head>
  <body>
    <h1>Versione MathML della definizione di luminanza relativa</h1>
    <p>Il contenuto che segue è la versione MathML della <a href="http://www.w3.org/TR/WCAG20/Overview.htmll#relativeluminancedef">definizione della luminanza relativa delle WCAG 2.0</a>. Riferirsi a <a href="http://www.w3.org/Math/Software/mathml_software_cat_browsers.html">Applicazioni MathML - Browser</a> per informazioni riguardo ai browser ed ai plugin che supportano MathML con i quali è possibile visualizzare in modo corretto le seguenti informazioni presenti in questa pagina.</p>
    <dl>
      <dt class="label">
        <a id="relativeluminancedef"> </a>luminanza relativa</dt>
      <dd>
        <p>la luminosità relativa di qualunque punto in uno spazio-colore, normalizzata a 0 per il nero più scuro e ad 1 il bianco più chiaro</p>
        <div class="note">
          <p class="prefix">
            Nota 1: Per lo spazio-colore sRGB, la luminanza relativa di un colore è definita come <math xmlns="http://www.w3.org/1998/Math/MathML">
              <mstyle displaystyle="true" mathcolor="blue" fontfamily="serif">
                <mi>L</mi><mo>=</mo><mn>0.2126</mn><mo>×</mo><mi>R</mi><mo>+</mo><mn>0.7152</mn><mo>×</mo><mi>G</mi><mo>+</mo><mn>0.0722</mn><mo>×</mo><mi>B</mi>
              </mstyle>
            </math> dove <strong>R</strong>, <strong>G</strong> e <strong>B</strong> sono definiti come:
          </p>
          <ul>
            <li>
              <p>Se <math xmlns="http://www.w3.org/1998/Math/MathML">
                  <mstyle displaystyle="true" mathcolor="blue" fontfamily="serif">
                    <msub>
                      <mi>R</mi>
                      <mrow>
                        <mi>s</mi>
                        <mi>R</mi>
                        <mi>G</mi>
                        <mi>B</mi>
                      </mrow>
                    </msub>
                    <mo>≤</mo>
                    <mn>0.03928</mn>
                  </mstyle>
                </math> allora <math xmlns="http://www.w3.org/1998/Math/MathML">
                  <mstyle displaystyle="true" mathcolor="blue" fontfamily="serif">
                    <mi>R</mi>
                    <mo>=</mo>
                    <mfrac>
                      <msub>
                        <mi>R</mi>
                        <mrow>
                          <mi>s</mi>
                          <mi>R</mi>
                          <mi>G</mi>
                          <mi>B</mi>
                        </mrow>
                      </msub>
                      <mn>12.92</mn>
                    </mfrac>
                  </mstyle>
                </math>
 altrimenti <math xmlns="http://www.w3.org/1998/Math/MathML">
                  <mstyle displaystyle="true" mathcolor="blue" fontfamily="serif">
                    <mi>R</mi>
                    <mo>=</mo>
                    <msup>
                      <mrow>
                        <mo>(</mo>
                        <mfrac>
                          <mrow>
                            <msub>
                              <mi>R</mi>
                              <mrow>
                                <mi>s</mi>
                                <mi>R</mi>
                                <mi>G</mi>
                                <mi>B</mi>
                              </mrow>
                            </msub>
                            <mo>+</mo>
                            <mn>0.055</mn>
                          </mrow>
                          <mn>1.055</mn>
                        </mfrac>
                        <mo>)</mo>
                      </mrow>
                      <mn>2.4</mn>
                    </msup>
                  </mstyle>
                </math>
              </p>
            </li>
            <li>
              <p>Se <math xmlns="http://www.w3.org/1998/Math/MathML">
                  <mstyle displaystyle="true" mathcolor="blue" fontfamily="serif">
                    <msub>
                      <mi>G</mi>
                      <mrow>
                        <mi>s</mi>
                        <mi>R</mi>
                        <mi>G</mi>
                        <mi>B</mi>
                      </mrow>
                    </msub>
                    <mo>≤</mo>
                    <mn>0.03928</mn>
                  </mstyle>
                </math> allora <math xmlns="http://www.w3.org/1998/Math/MathML">
                  <mstyle displaystyle="true" mathcolor="blue" fontfamily="serif">
                    <mi>G</mi>
                    <mo>=</mo>
                    <mfrac>
                      <msub>
                        <mi>G</mi>
                        <mrow>
                          <mi>s</mi>
                          <mi>R</mi>
                          <mi>G</mi>
                          <mi>B</mi>
                        </mrow>
                      </msub>
                      <mn>12.92</mn>
                    </mfrac>
                  </mstyle>
                </math>
 altrimenti <math xmlns="http://www.w3.org/1998/Math/MathML">
                  <mstyle displaystyle="true" mathcolor="blue" fontfamily="serif">
                    <mi>G</mi>
                    <mo>=</mo>
                    <msup>
                      <mrow>
                        <mo>(</mo>
                        <mfrac>
                          <mrow>
                            <msub>
                              <mi>G</mi>
                              <mrow>
                                <mi>s</mi>
                                <mi>R</mi>
                                <mi>G</mi>
                                <mi>B</mi>
                              </mrow>
                            </msub>
                            <mo>+</mo>
                            <mn>0.055</mn>
                          </mrow>
                          <mn>1.055</mn>
                        </mfrac>
                        <mo>)</mo>
                      </mrow>
                      <mn>2.4</mn>
                    </msup>
                  </mstyle>
                </math>
              </p>
            </li>
            <li>
              <p>Se <math xmlns="http://www.w3.org/1998/Math/MathML">
                  <mstyle displaystyle="true" mathcolor="blue" fontfamily="serif">
                    <msub>
                      <mi>B</mi>
                      <mrow>
                        <mi>s</mi>
                        <mi>R</mi>
                        <mi>G</mi>
                        <mi>B</mi>
                      </mrow>
                    </msub>
                    <mo>≤</mo>
                    <mn>0.03928</mn>
                  </mstyle>
                </math> allora <math xmlns="http://www.w3.org/1998/Math/MathML">
                  <mstyle displaystyle="true" mathcolor="blue" fontfamily="serif">
                    <mi>B</mi>
                    <mo>=</mo>
                    <mfrac>
                      <msub>
                        <mi>B</mi>
                        <mrow>
                          <mi>s</mi>
                          <mi>R</mi>
                          <mi>G</mi>
                          <mi>B</mi>
                        </mrow>
                      </msub>
                      <mn>12.92</mn>
                    </mfrac>
                  </mstyle>
                </math>
 altrimenti <math xmlns="http://www.w3.org/1998/Math/MathML">
                  <mstyle displaystyle="true" mathcolor="blue" fontfamily="serif">
                    <mi>B</mi>
                    <mo>=</mo>
                    <msup>
                      <mrow>
                        <mo>(</mo>
                        <mfrac>
                          <mrow>
                            <msub>
                              <mi>B</mi>
                              <mrow>
                                <mi>s</mi>
                                <mi>R</mi>
                                <mi>G</mi>
                                <mi>B</mi>
                              </mrow>
                            </msub>
                            <mo>+</mo>
                            <mn>0.055</mn>
                          </mrow>
                          <mn>1.055</mn>
                        </mfrac>
                        <mo>)</mo>
                      </mrow>
                      <mn>2.4</mn>
                    </msup>
                  </mstyle>
                </math>
              </p>
            </li>
          </ul>
		  <p>e <math xmlns="http://www.w3.org/1998/Math/MathML"><mstyle displaystyle="true" mathcolor="blue" fontfamily="serif"><msub><mi>R</mi><mrow><mi>s</mi><mi>R</mi><mi>G</mi><mi>B</mi></mrow></msub><mo>,</mo><msub><mi>G</mi><mrow><mi>s</mi><mi>R</mi><mi>G</mi><mi>B</mi></mrow></msub><mo>,</mo><mrow><mspace width="1ex"></mspace><mtext>and</mtext><mspace width="1ex"></mspace></mrow><msub><mi>B</mi><mrow><mi>s</mi><mi>R</mi><mi>G</mi><mi>B</mi></mrow></msub></mstyle></math> sono definiti come:</p>
		  <ul>
		  <li><math xmlns="http://www.w3.org/1998/Math/MathML"><mstyle displaystyle="true" mathcolor="blue" fontfamily="serif"><msub><mi>R</mi><mrow><mi>s</mi><mi>R</mi><mi>G</mi><mi>B</mi></mrow></msub><mo>=</mo><mfrac><msub><mi>R</mi><mrow><mn>8</mn><mi>b</mi><mi>i</mi><mi>t</mi></mrow></msub><mn>255</mn></mfrac></mstyle></math></li>
		   <li><math xmlns="http://www.w3.org/1998/Math/MathML"><mstyle displaystyle="true" mathcolor="blue" fontfamily="serif"><msub><mi>G</mi><mrow><mi>s</mi><mi>R</mi><mi>G</mi><mi>B</mi></mrow></msub><mo>=</mo><mfrac><msub><mi>G</mi><mrow><mn>8</mn><mi>b</mi><mi>i</mi><mi>t</mi></mrow></msub><mn>255</mn></mfrac></mstyle></math></li>
		    <li><math xmlns="http://www.w3.org/1998/Math/MathML"><mstyle displaystyle="true" mathcolor="blue" fontfamily="serif"><msub><mi>B</mi><mrow><mi>s</mi><mi>R</mi><mi>G</mi><mi>B</mi></mrow></msub><mo>=</mo><mfrac><msub><mi>B</mi><mrow><mn>8</mn><mi>b</mi><mi>i</mi><mi>t</mi></mrow></msub><mn>255</mn></mfrac></mstyle></math></li>
		  </ul>
          <div class="note">
            <p class="prefix">(Formula tratta da <a href="http://w3.org/TR/WCAG20/Overview.html#sRGB">[sRGB]</a> e <a href="http://w3.org/TR/WCAG20/Overview.html#IEC-4WD">[IEC-4WD]</a>.)</p>
          </div>
          <p class="prefix">Nota 2: Quasi tutti i sistemi oggi in uso assumono la codifica sRGB per visualizzare i contenuti Web. A meno che non si sappia che per sviluppare e visualizzare i contenuti si utilizzerà un altro spazio-colore, gli autori dovrebbero utilizzare lo spazio-colore sRGB. Se si utilizzano altri spazi-colore riferirsi a <a href="http://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html">comprendere il criterio di successo 1.4.3</a>.</p>
		  <p class="prefix">Nota 3: Se interviene il dithering (approssimazione dei colori per ridurne la gamma cromatica) dopo la realizzazione finale utilizzare il colore sorgente. Per i colori approssimati inizialmente si dovrebbero usare dei colori approssimati, cioè i valori medi (valor medio di rosso R, valor medio di verde G e valor medio di blu B).</p>
          <p class="prefix">Nota 4: Sono disponibili strumenti che calcolano automaticamente i valori verificando contrasto e lampeggiamento.</p>
		
        </div>
      </dd>
    </dl>
  </body>
</html>
