From: Tim Vaughan Date: Tue, 21 May 2019 09:30:56 +0000 (+0200) Subject: Fixed colour scaling. X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?a=commitdiff_plain;h=e3bfe837fe1c04c4319ebb57d70bd641f7906829;p=sixel.git Fixed colour scaling. --- diff --git a/sixel.el b/sixel.el index 8f00687..053739d 100644 --- a/sixel.el +++ b/sixel.el @@ -152,9 +152,9 @@ representation of SIXEL-IMAGE." (elt colour 0) " " "c #" (format "%02x%02x%02x" - (elt colour 1) - (elt colour 2) - (elt colour 3)) + (/ (* 255 (elt colour 1)) 100) + (/ (* 255 (elt colour 2)) 100) + (/ (* 255 (elt colour 3)) 100)) "\"")) colour-map) ",\n")