<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<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="https://www.w3.org/StyleSheets/TR/base.css"/>
<title>MathML version of the relative luminance definition</title>
</head>
<body>
<h1>Versione in MathML della definizione di luminanza relativa</h1>
<p>Quella che segue è la versione in MathML della <a href="./#relativeluminancedef">definizione di luminanza relativa nelle WCAG 2.2 </a>. Refer to <a href="https://www.w3.org/Math/Software/mathml_software_cat_browsers.html">MathML Software - Browsers</a> per informazioni sui browsers e le estensioni che supportano MathML di cui potresti aver bisogno per visualizzare correttamente le informazioni in questa pagina.</p>
<dl>
<dt><dfn data-dfn-type="dfn" id="dfn-relative-luminance" tabindex="0">luminanza relativa</dfn></dt>
<dd><p>la luminosità relativa di ogni punto nello spazio dei colori, normalizzata a 0 per il nero più scoro e a 1 per il bianco più chiaro </p>
<div class="note" role="note" id="issue-container-generatedID-128"><div role="heading" class="note-title marker" id="h-note-128" aria-level="3"><span>Note</span><!---0.410359%--></div><div class="">
<p>Per lo spazio dei colori sRGB, la luminanza relativa di un colore è definita come
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mstyle>
<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> where <strong>R</strong>, <strong>G</strong> and <strong>B</strong> are defined as: </p>
<ul>
<li>
<p>Se <math xmlns="http://www.w3.org/1998/Math/MathML">
<mstyle>
<msub>
<mi>R</mi>
<mrow>
<mi>s</mi>
<mi>R</mi>
<mi>G</mi>
<mi>B</mi>
</mrow>
</msub>
<mo>≤</mo>
<mn>0.04045</mn>
</mstyle>
</math> allora <math xmlns="http://www.w3.org/1998/Math/MathML">
<mstyle>
<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>
<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>
<msub>
<mi>G</mi>
<mrow>
<mi>s</mi>
<mi>R</mi>
<mi>G</mi>
<mi>B</mi>
</mrow>
</msub>
<mo>≤</mo>
<mn>0.04045</mn>
</mstyle>
</math> allora <math xmlns="http://www.w3.org/1998/Math/MathML">
<mstyle>
<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>
<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>
<msub>
<mi>B</mi>
<mrow>
<mi>s</mi>
<mi>R</mi>
<mi>G</mi>
<mi>B</mi>
</mrow>
</msub>
<mo>≤</mo>
<mn>0.04045</mn>
</mstyle>
</math> allora <math xmlns="http://www.w3.org/1998/Math/MathML">
<mstyle>
<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>
<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>and <math xmlns="http://www.w3.org/1998/Math/MathML">
<mstyle>
<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" />
<mtext>e</mtext>
<mspace width="1ex" />
</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>
<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>
<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>
<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><p>(Formula estratta da [<cite><a class="bibref" data-link-type="biblio" href="http://github/w3c/wcag/guidelines/#bib-srgb" title="Multimedia systems and equipment - Colour measurement and management - Part 2-1: Colour management - Default RGB colour space - sRGB">SRGB</a></cite>].) </p>
</div>
</div>
<div class="note" role="note" id="issue-container-generatedID-129"><div role="heading" class="note-title marker" id="h-note-129" aria-level="3"><span>Nota</span><!---0.410359%--></div><p class="">Prima di Maggio 2021 il valore di 0.04045 nella definizione era diverso (0.03928). Era stato preso da una versione meno recente delle specifiche ed è stato aggiornata. Non ha alcun effetto pratico sui calcoli nel contesto di queste linee guida. </p></div>
<div class="note" role="note" id="issue-container-generatedID-130"><div role="heading" class="note-title marker" id="h-note-130" aria-level="3"><span>Nota</span><!---0.410359%--></div><p class="">Quasi tutti i sistemi ad oggi utilizzati per visualizzare contenuti Web impiegano la codifica sRGB. A meno che non si sappia che verrà usato un altro spazio dei colori per elaborare e visualizzare i contenuti, gli autori dovrebbero considerare l'uso dello spazio dei colori sRGB. Se si utilizzano altri spazi dei colori, si veda
<a href="https://www.w3.org/WAI/WCAG22/Understanding/contrast-minimum">Comprendere il Criterio di Successo 1.4.3</a>.
</p></div>
<div class="note" role="note" id="issue-container-generatedID-131"><div role="heading" class="note-title marker" id="h-note-131" aria-level="3"><span>Nota</span><!---0.410359%--></div><p class="">
Se si applica il dithering dopo la distribuzione, allora viene utilizzato il valore del colore di origine. Per i colori a cui è stato applicato il dithering in origine, dovrebbero essere utilizzati i valori medi dei colori a cui è stato applicato il dithering (media del rosso, media del verde, media del blu).
</p></div>
<div class="note" role="note" id="issue-container-generatedID-132"><div role="heading" class="note-title marker" id="h-note-132" aria-level="3"><span>Nota</span><!---0.410359%--></div><p class="">Sono disponibili strumenti che eseguono automaticamente i calcoli per verificare il contrasto e il lampeggiamento.
</p></div>
</dd>
<dt id="bib-srgb">[SRGB]</dt>
<dd><a href="https://webstore.iec.ch/publication/6169"><cite>Multimedia systems and equipment - Colour measurement and management - Part 2-1: Colour management - Default RGB colour space - sRGB</cite></a>. IEC. URL: <a href="https://webstore.iec.ch/publication/6169">https://webstore.iec.ch/publication/6169</a></dd>
</dl>
</body>
</html>