bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Need to name colours, 256 to 1000 accuracy ?


From: Patrick
Subject: Need to name colours, 256 to 1000 accuracy ?
Date: Sun, 29 Oct 2017 12:33:17 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.8.0

Hi Everyone

I need to name colours. I want to do this in a safe and standard way. I was thinking that I would use the names in rgb.txt.

Here is the first few lines:

"""
255 250 250        snow
248 248 255        ghost white
248 248 255        GhostWhite
245 245 245        white smoke
245 245 245        WhiteSmoke
220 220 220        gainsboro
255 250 240        floral white
255 250 240        FloralWhite
253 245 230        old lace
253 245 230        OldLace
250 240 230        linen
"""


I could run something like this:

for i in `cat colours-to-rearrange3` ; do echo "$i" | awk '{printf("%d\n",$1 * 3.9)}' ; done

I could convert the 256 based values to 1000 based.

I don't have to be perfectly accurate but do you think this should basically work? do you think the colour names will pretty much match ?

-Patrick






reply via email to

[Prev in Thread] Current Thread [Next in Thread]