lemon/color.cc
author ladanyi
Sat, 13 Oct 2007 08:48:07 +0000
changeset 2495 e4f8367beb41
parent 2174 f9e43b5cc617
child 2553 bfced05fa852
permissions -rw-r--r--
Added the function isFinite(), and replaced the calls to finite() with it.
This was necessary because finite() is not a standard function. Neither can
we use its standard counterpart isfinite(), because it was introduced only
in C99, and therefore it is not supplied by all C++ implementations.
alpar@2391
     1
/* -*- C++ -*-
alpar@2174
     2
 *
alpar@2174
     3
 * This file is a part of LEMON, a generic C++ optimization library
alpar@2174
     4
 *
alpar@2391
     5
 * Copyright (C) 2003-2007
alpar@2174
     6
 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
alpar@2174
     7
 * (Egervary Research Group on Combinatorial Optimization, EGRES).
alpar@2174
     8
 *
alpar@2174
     9
 * Permission to use, modify and distribute this software is granted
alpar@2174
    10
 * provided that this copyright notice appears in all copies. For
alpar@2174
    11
 * precise terms see the accompanying LICENSE file.
alpar@2174
    12
 *
alpar@2174
    13
 * This software is provided "AS IS" with no warranty of any kind,
alpar@2174
    14
 * express or implied, and with no claim as to its suitability for any
alpar@2174
    15
 * purpose.
alpar@2174
    16
 *
alpar@2174
    17
 */
alpar@2174
    18
alpar@2174
    19
///\file
alpar@2174
    20
///\brief Color constants
alpar@2174
    21
alpar@2174
    22
#include<lemon/color.h>
alpar@2174
    23
alpar@2174
    24
namespace lemon {
alpar@2174
    25
alpar@2174
    26
  const Color WHITE(1,1,1);
alpar@2174
    27
  
alpar@2174
    28
  const Color BLACK(0,0,0);
alpar@2174
    29
  const Color RED(1,0,0);
alpar@2174
    30
  const Color GREEN(0,1,0);
alpar@2174
    31
  const Color BLUE(0,0,1);
alpar@2174
    32
  const Color YELLOW(1,1,0);
alpar@2174
    33
  const Color MAGENTA(1,0,1);
alpar@2174
    34
  const Color CYAN(0,1,1);
alpar@2174
    35
alpar@2174
    36
  const Color GREY(0,0,0);
alpar@2174
    37
  const Color DARK_RED(.5,0,0);
alpar@2174
    38
  const Color DARK_GREEN(0,.5,0);
alpar@2174
    39
  const Color DARK_BLUE(0,0,.5);
alpar@2174
    40
  const Color DARK_YELLOW(.5,.5,0);
alpar@2174
    41
  const Color DARK_MAGENTA(.5,0,.5);
alpar@2174
    42
  const Color DARK_CYAN(0,.5,.5);
alpar@2174
    43
    
alpar@2174
    44
} //namespace lemon