From f22a8118a013f3cb7b5b4510195c655c4647c594 Mon Sep 17 00:00:00 2001 From: yellows111 Date: Wed, 18 Oct 2023 15:28:34 +0100 Subject: [PATCH] Support rotating icon using arrow keys, and use a triangle strip instead of triangles for BG again --- icon.js | 4 +- input.htm | 132 ++++++++++++++++++++++++++++++++++++++++-------------- 2 files changed, 101 insertions(+), 35 deletions(-) diff --git a/icon.js b/icon.js index 43146f6..bd441cd 100644 --- a/icon.js +++ b/icon.js @@ -161,8 +161,8 @@ function readIconFile(input) { r: (i & 0xff), g: ((i & 0xff00) >> 8), b: ((i & 0xff0000) >> 16), - //a: (i > 0x7fffffff ? 255 : (((i & 0xff000000) >>> 24) * 2)+1) - a: 255 // I don't think alpha transparency is actually USED in icons? + a: (i > 0x7fffffff ? 255 : (((i & 0xff000000) >>> 24) * 2)+1) + // I don't think alpha transparency is actually USED in icons?, rendering with it looks strange. }}; const magic = u32le(0); if (magic !== 0x010000) { diff --git a/input.htm b/input.htm index 861d895..3c48d47 100644 --- a/input.htm +++ b/input.htm @@ -2,9 +2,9 @@ - + - input validation test + icondumper2 - HTML reference client