~ubuntu-branches/ubuntu/warty/dasher/warty

« back to all changes in this revision

Viewing changes to Src/DasherCore/CustomColours.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Matthew Garrett
  • Date: 2003-06-05 11:10:04 UTC
  • Revision ID: james.westby@ubuntu.com-20030605111004-kqiutbrlvs7td9ic
Tags: upstream-3.2.10
ImportĀ upstreamĀ versionĀ 3.2.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// CustomColours.cpp
 
2
//
 
3
/////////////////////////////////////////////////////////////////////////////
 
4
//
 
5
// Copyright (c) 2002 Iain Murray
 
6
//
 
7
/////////////////////////////////////////////////////////////////////////////
 
8
 
 
9
 
 
10
#include "CustomColours.h"
 
11
using namespace Dasher;
 
12
using namespace std;
 
13
 
 
14
CCustomColours::CCustomColours(const CColourIO::ColourInfo& ColourInfo)
 
15
{
 
16
        m_ColourInfo=&ColourInfo;
 
17
 
 
18
        // Add all the colours.
 
19
        for (unsigned int i=0; i<ColourInfo.Reds.size(); i++) { // loop colours
 
20
          m_Red.push_back(ColourInfo.Reds[i]);
 
21
          m_Green.push_back(ColourInfo.Greens[i]);
 
22
          m_Blue.push_back(ColourInfo.Blues[i]);
 
23
        }
 
24
}