update docs, add favicon to docs template

This commit is contained in:
りき萌 2024-09-01 19:15:41 +02:00
parent ef1e35fcf0
commit 1543534101
3 changed files with 16 additions and 2 deletions

View file

@ -309,7 +309,7 @@ This is because it's easier to do math on normalized colors.
For example, consider multiplicatively blending two colors.
```haku
; This is how you can multiply two colors together.
-- This is how you can multiply two colors together.
mulRgba = \a, b ->
rgba (rgbaR a * rgbaR b) (rgbaG a * rgbaG b) (rgbaB a * rgbaB b) (rgbaA a * rgbaA b)
```
@ -317,7 +317,7 @@ mulRgba = \a, b ->
If haku represented colors using an 8-bit `0` to `255` range instead, to multiply two colors together, you would have to divide them by `255` to get them back into the correct range.
```haku
; NOTE: This example does NOT work correctly.
-- NOTE: This example does NOT work correctly.
mulRgba = \a, b ->
let red = (rgbaR a * rgbaR b) / 255
let green = (rgbaG a * rgbaG b) / 255