Kleure HWB


HWB (Hue, Whiteness, Blackness) is 'n voorgestelde standaard vir CSS4.


HWB Sakrekenaar


 
rgb(255; 0; 0)
#ff0000
hsl(0, 100%, 50%)


H:
W:
B:
"; } x += ""; x += ""; n = 0; vir (i = 0; i "; } x += ""; x += ""; document.getElementById("huetable"). innerHTML = x; } funksie drawWhiteTable(hue) { var x, i; x = "" x += ""; vir (i = 0; i "; } x += ""; x += ""; vir ( i = 0; i "; } x += "
" + i + "
"; document.getElementById("whitetable").innerHTML = x; } funksie drawBlackTable(hue) { var x, i; x = "" x += ""; vir (i = 0; i "; } x += ""; x += ""; vir (i = 0; i "; } x += "
" + i + "
"; document.getElementById("blacktable").innerHTML = x; } drawWhiteTable(0); drawHueTable(0); drawBlackTable(0);

HTML Ondersteuning

HWB word (nog) nie in HTML ondersteun nie, maar dit word voorgestel as 'n nuwe standaard in CSS4.

Terwyl jy vir CSS4 wag, kan jy W3Schools se kleurbiblioteek insluit en HWB as 'n HTML-kenmerk soos volg gebruik:

Voorbeeld

<div data-w3-color="hwb(60, 50%, 0)">

<p>London is the capital city of England.
It is the most populous city in the United Kingdom,
with a metropolitan area of over 13 million inhabitants.</p>

</div>

<script src="/lib/w3color.js"></script>

W3Skole Kleurbiblioteek

Die JavaScript-biblioteek wat in die voorbeeld hierbo gebruik word, kan afgelaai word vanaf

https://www.w3schools.com/lib/w3color.js


❮ Vorige Volgende ❯