OK In progress...

This commit is contained in:
Kolan Sh 2018-01-19 17:43:20 +03:00
parent 548863c0e8
commit 15e244ada3
1 changed files with 31 additions and 2 deletions

View File

@ -1,12 +1,41 @@
namespace CairoChart { namespace CairoChart {
/**
* R/G/B/A Color.
*/
public struct Color { public struct Color {
/**
* Red component.
*/
double red; double red;
/**
* Green component.
*/
double green; double green;
/**
* Blue component.
*/
double blue; double blue;
/**
* Alpha component.
*/
double alpha; double alpha;
public Color (double red = 0.0, double green = 0.0, double blue = 0.0, double alpha = 1.0) { /**
this.red = red; this.green = green; this.blue = blue; this.alpha = alpha; * Constructs a new ``Color``.
*/
public Color (double red = 0.0,
double green = 0.0,
double blue = 0.0,
double alpha = 1.0) {
this.red = red;
this.green = green;
this.blue = blue;
this.alpha = alpha;
} }
} }
} }