mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-21 08:45:04 -05:00
XEP-0392: Fix a typo (thanks zinid)
This commit is contained in:
parent
7fa920f335
commit
3c1f3734fb
10
xep-0392.xml
10
xep-0392.xml
@ -23,6 +23,14 @@
|
||||
<supersededby/>
|
||||
<shortname>colors</shortname>
|
||||
&jonaswielicki;
|
||||
<revision>
|
||||
<version>0.4.1</version>
|
||||
<date>2018-07-28</date>
|
||||
<initials>egp</initials>
|
||||
<remark>
|
||||
<p>Fix a typo. (thanks zinid)</p>
|
||||
</remark>
|
||||
</revision>
|
||||
<revision>
|
||||
<version>0.4</version>
|
||||
<date>2017-11-29</date>
|
||||
@ -124,7 +132,7 @@
|
||||
<p>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.</p>
|
||||
<ol>
|
||||
<li>Run the input through SHA-1 (&rfc3174;).</li>
|
||||
<li>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.)</li>
|
||||
<li>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.)</li>
|
||||
<li>Divide the value by 65536 (use float division) and multiply it by 2π (two Pi).</li>
|
||||
</ol>
|
||||
</section2>
|
||||
|
Loading…
Reference in New Issue
Block a user