From 3c1f3734fb2cad84543710259af4c0fe07c0cbed Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sat, 28 Jul 2018 18:17:31 +0200 Subject: [PATCH] XEP-0392: Fix a typo (thanks zinid) --- xep-0392.xml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/xep-0392.xml b/xep-0392.xml index 33e69c94..ca9e3645 100644 --- a/xep-0392.xml +++ b/xep-0392.xml @@ -23,6 +23,14 @@ colors &jonaswielicki; + + 0.4.1 + 2018-07-28 + egp + +

Fix a typo. (thanks zinid)

+
+
0.4 2017-11-29 @@ -124,7 +132,7 @@

Note: The goal of this algorithm is to convert arbitrary text into a scalar value which can then be used to calculate a color. As it happens, the CbCr plane of the YCbCr space determines the color (while Y merely defines the lightness); thus, an angle in the CbCr plane serves as a good scalar value to select a color.

  1. Run the input through SHA-1 (&rfc3174;).
  2. -
  3. Treat the output as little endian and extract the last-significant 16 bits. (These are the first two bytes of the output, with the second byte being the most significant one.)
  4. +
  5. Treat the output as little endian and extract the least-significant 16 bits. (These are the first two bytes of the output, with the second byte being the most significant one.)
  6. Divide the value by 65536 (use float division) and multiply it by 2π (two Pi).