Skip to content

Commit

Permalink
Added sample output to README
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Chizhov committed Nov 16, 2011
1 parent 16db98c commit 2d5bf81
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,15 @@ where:
color - hex rgb, prefixed by 0x. i.e.: 0xFF00FF).
</code></pre>

Example:

<pre><code>
$ ./colrconv 0xFF00FF 0x000000 0xFF7E00 0xA52A2A
0xFF00FF -> 0x00F81F
0x000000 -> 0x000000
0xFF7E00 -> 0x00FBE0
0xA52A2A -> 0x00A145
</code></pre>

NB: You can see, that the output is 24 bit too. But first 8 bits are always '00'.

0 comments on commit 2d5bf81

Please sign in to comment.