[rrd-users] Alpha color RRDTool

Tobias Oetiker tobi at oetiker.ch
Wed May 17 14:24:53 CEST 2017


as it sais in the documentation ... 

color is composed from three hexadecimal numbers specifying the rgb color components (00 is off, FF is maximum) red, green and blue followed by an optional alpha.

cheers
tobi

----- On May 17, 2017, at 10:45 AM, Johan Elmerfjord jelmerfj at adobe.com wrote:

> Hi,
> 
> Have not looked at the code – or document.
> But what if the Alpha is to the end.
> #519933 is "green" but #005199   is blue  - and with a alpha of  33 – it will be
> quite light-blue (as in your graph)
> #8C1DA2 is "purple", but #008C1D is green   - and with alpha A2 it will be quite
> “strong”.
> 
> Can you try it and see if that makes sense.
> 
> /Johan
> 
> On 2017-05-17, 09:22, "rrd-users on behalf of Willsz.net"
> <rrd-users-bounces+jelmerfj=adobe.com at lists.oetiker.ch on behalf of
> willsznet at gmail.com> wrote:
> 
>    Hi,
>    
>    I've some questions about alpha color in rrdtool produced:
>    
>    root:~# uname -sr
>    FreeBSD 9.3-STABLE
>    root:~# rrdtool -v
>    RRDtool 1.6.0  Copyright by Tobias Oetiker <tobi at oetiker.ch>
>                    Compiled Nov  6 2016 07:32:26
>    
>    Usage: rrdtool [options] command command_options
>    Valid commands: create, update, updatev, graph, graphv,  dump, restore,
>                     last, lastupdate, first, info, fetch, tune
>                     resize, xport, flushcached
>    
>    RRDtool is distributed under the Terms of the GNU General
>    Public License Version 2.
>    (https://na01.safelinks.protection.outlook.com/?url=www.gnu.org%2Fcopyleft%2Fgpl.html&data=02%7C01%7C%7Ce880bd43e62c40ccd7ec08d49cf5a184%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636306026178600739&sdata=0e2HDxZMcKojJmjrYBsLsKzhXHYjhjrGtR%2FIdp4WdJo%3D&reserved=0)
>    
>    For more information read the RRD manpages
>    
>    We've attached pcol-day.png for more clearly, here snapshoot my code:
>    
>    AREA:PCOL#00519933:"" \
>    
>    #519933 is "green" color. But #00519933 is "blue" in my view. AFAIK, in
>    XML Android #00519933 should be "green light" in my view. Another case,
>    #8C1DA2 is "purple", but #008C1DA2 produced "green". How to determine
>    alpha color in rrdtool?
>    
>    Thank you.
>    
>    
> 
> _______________________________________________
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
www.oetiker.ch tobi at oetiker.ch +41 62 775 9902



More information about the rrd-users mailing list