1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
#include <iostream>
#include <cstring>
#include <cmath>
#include "color.h"
using namespace std;
int main()
{
const Color Black;
const Color White(255, 255, 255);
const Color SkyBlue(135, 206, 235);
const Color SeaGreen(46, 139, 87);
const Color Gold(255, 215, 0);
const Color Chocolate(210, 105, 30);
const Color DarkGrey(75, 75, 75);
Color Custom(White);
Custom.mix(DarkGrey);
Custom.mix(SkyBlue);
Color CreamyMix(White);
CreamyMix.mix(SkyBlue);
CreamyMix.mix(SeaGreen);
CreamyMix.mix(White);
CreamyMix.mix(White);
Color mixes[5];
mixes[0] = SkyBlue;
mixes[0].add(SeaGreen);
mixes[0].mix(Black);
mixes[1].set(SeaGreen.R(), DarkGrey.G(),Chocolate.B());
mixes[1].mix(Gold);
mixes[2] = White;
mixes[2].add(Black);
mixes[2].add(Gold);
mixes[3].set(Chocolate.R(), Gold.G(), SeaGreen.B());
mixes[3].add(SkyBlue);
mixes[4] = mixes[3];
mixes[4].mix(Black);
mixes[4].mix(Black);
}
|