Skip to content

Commit

Permalink
Add HSL to CSS colours
Browse files Browse the repository at this point in the history
Remove detailed explanation of RGB hexadecimal numbers
  • Loading branch information
Kout committed Oct 5, 2018
1 parent f2a7ec7 commit de5605a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions slides/09-css-pozadi.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,17 @@
```css
p {
background-color: green;
background-color: #00FF00;
background-color: hsl(120, 100%, 50%);
background-color: rgb(0, 255, 0);
background-color: #00FF00;
}
```

#<span style="color:red">RR</span><span style="color:green">GG</span><span style="color:blue">BB</span> = šestnáckový zápis složek R(ed)G(reen)B(lue)

šestnáctková soustava: číslice `0‒9` a písmena `a‒f`, tj. hodnoty od `00` do `ff`

<!-- .element: class="c-text-sm stretch" contenteditable="true" -->
<!-- .element: class="c-text-sm" contenteditable="true" -->

>>>
* barvy slovně (jak to nabízí Thimble)
* v praxi spíše číselně, hexadecimálně
* HSL: hue, saturation, luminescence ~ odstín, sytost, jas
* #rrggbb => vždy dvojciferné číslo pro barevnou složku červená|zelená|modrá
* hodnoty 0‒255, ale šestnáctkově 0‒ff

Expand Down

0 comments on commit de5605a

Please sign in to comment.