COIN-OR::LEMON - Graph Library

Changeset 179:1f436ea3ef4f in glemon-0.x for graph_displayer_canvas-node.cc


Ignore:
Timestamp:
11/06/06 16:40:44 (16 years ago)
Author:
Hegyi Péter
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/glemon/trunk@3065
Message:

Color handling of maps is a bit better now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • graph_displayer_canvas-node.cc

    r174 r179  
    186186          if(max!=min)
    187187            {
    188               color.set_rgb_p (0, 0, 100*(w-min)/(max-min));
     188              color=rainbowColorCounter(min, max, w);
    189189            }
    190190          else
    191191            {
    192               color.set_rgb_p (0, 0, 100);
     192              color.set_rgb_p (0, 0, 1);
    193193            }
    194194
     
    204204      if(max!=min)
    205205        {
    206           color.set_rgb_p (0, 0, 100*(w-min)/(max-min));
     206          color=rainbowColorCounter(min, max, w);
    207207        }
    208208      else
    209209        {
    210           color.set_rgb_p (0, 0, 100);
     210          color.set_rgb_p (0, 0, 1);
    211211        }
    212212
Note: See TracChangeset for help on using the changeset viewer.