From d8de618cfc1b0a89bd92340071d20e668244a53d Mon Sep 17 00:00:00 2001 From: noe Date: Thu, 2 May 2024 21:24:55 -0400 Subject: [PATCH] add explanation and highp 8bit float --- .../-~-/index.html | 37 ++++++++++++++++--- 1 file changed, 32 insertions(+), 5 deletions(-) diff --git a/-~-/what the fuck is a lightrunner/-~-/index.html b/-~-/what the fuck is a lightrunner/-~-/index.html index 70b90ee..9e0a456 100644 --- a/-~-/what the fuck is a lightrunner/-~-/index.html +++ b/-~-/what the fuck is a lightrunner/-~-/index.html @@ -51,8 +51,31 @@ +
+

warning: math

+

+ a 9-character single-case string could be interpreted as 3 triplets of + base32. this allows for a 0-46655 range per channel! +

+
    +
  1. our example "girltwink" turns into (gir, ltw, ink)
  2. +
  3. which turns into decimal (21411, 28292, 24176)
  4. +
  5. + we change this to linear by dividing by 46655 ( 0.45892187332547424, + 0.6064087450434037, 0.5181866895295253 ) +
  6. +
  7. + and then up to 8 bit 0-255 ( 117.02507769799593, 154.63422998606794, + 132.13760583002895 ) +
  8. +
  9. + but probably too precise of a color :3 so ( 117, 155, 132 ) +
  10. +
+