COIN-OR::LEMON - Graph Library

Changeset 209:765619b7cbb2 in lemon-1.2 for lemon/color.h


Ignore:
Timestamp:
07/13/08 20:51:02 (11 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Phase:
public
Message:

Apply unify-sources.sh to the source tree

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/color.h

    r206 r209  
    1 /* -*- C++ -*-
    2  *
    3  * This file is a part of LEMON, a generic C++ optimization library
     1/* -*- mode: C++; indent-tabs-mode: nil; -*-
     2 *
     3 * This file is a part of LEMON, a generic C++ optimization library.
    44 *
    55 * Copyright (C) 2003-2008
     
    6363
    6464  /// White color constant
    65   extern const Color WHITE; 
     65  extern const Color WHITE;
    6666  /// Black color constant
    6767  extern const Color BLACK;
     
    131131        colors.push_back(Color(1,0,1));
    132132        colors.push_back(Color(0,1,1));
    133      
     133
    134134        colors.push_back(Color(.5,0,0));
    135135        colors.push_back(Color(0,.5,0));
     
    138138        colors.push_back(Color(.5,0,.5));
    139139        colors.push_back(Color(0,.5,.5));
    140      
     140
    141141        colors.push_back(Color(.5,.5,.5));
    142142        colors.push_back(Color(1,.5,.5));
     
    146146        colors.push_back(Color(1,.5,1));
    147147        colors.push_back(Color(.5,1,1));
    148      
     148
    149149        colors.push_back(Color(1,.5,0));
    150150        colors.push_back(Color(.5,1,0));
     
    172172    }
    173173    ///Adds a new color to the end of the color list.
    174     void add(const Color &c) 
     174    void add(const Color &c)
    175175    {
    176176      colors.push_back(c);
     
    187187  ///Returns a \ref Color which is as different from the given parameter
    188188  ///as it is possible.
    189   inline Color distantColor(const Color &c) 
     189  inline Color distantColor(const Color &c)
    190190  {
    191191    return Color(c.red()<.5?1:0,c.green()<.5?1:0,c.blue()<.5?1:0);
Note: See TracChangeset for help on using the changeset viewer.