Alpha color RRDTool

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Alpha color RRDTool

Willsz.net
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 <[hidden email]>
                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. (www.gnu.org/copyleft/gpl.html)

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
[hidden email]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

pcol-day.png (24K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Alpha color RRDTool

Johan Elmerfjord
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=[hidden email] on behalf of [hidden email]> 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 <[hidden email]>
                    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
[hidden email]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
Reply | Threaded
Open this post in threaded view
|

Re: Alpha color RRDTool

oetiker
Administrator
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 [hidden email] 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=[hidden email] on behalf of
> [hidden email]> 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 <[hidden email]>
>                    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
> [hidden email]
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

--
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
www.oetiker.ch [hidden email] +41 62 775 9902

_______________________________________________
rrd-users mailing list
[hidden email]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users