(
unsigned char r,
unsigned char g,
unsigned char b);
86 unsigned char b,
unsigned char a);
105 voidSet(
float r,
float g,
float b);
108 voidSet(
float r,
float g,
float b,
float a);
112 voidSet(
unsigned char r,
unsigned char g,
unsigned char b);
116 voidSet(
unsigned char r,
unsigned char g,
117 unsigned char b,
unsigned char a);
120 voidSetRed (
float r);
121 voidSetGreen(
float r);
122 voidSetBlue (
float r);
123 voidSetAlpha(
float r);
127 voidSetRed (
unsigned char r);
128 voidSetGreen(
unsigned char r);
129 voidSetBlue (
unsigned char r);
130 voidSetAlpha(
unsigned char r);
133 floatGetRed (
void)
const;
134 floatGetGreen(
void)
const;
135 floatGetBlue (
void)
const;
136 floatGetAlpha(
void)
const;
139 unsigned charGetRedUC (
void)
const;
140 unsigned charGetGreenUC(
void)
const;
141 unsigned charGetBlueUC (
void)
const;
142 unsigned charGetAlphaUC(
void)
const;
147 const float* GetColorArray(
void)
const;
151 voidPrintTo(
CNcbiOstream& strm,
boolprintAlpha,
booluchars =
true)
const;
154 string ToString(
boolprintAlpha =
true,
booluchars =
true)
const;
156 stringToCssString(
boolprintAlpha =
true)
const;
158 stringToHtmlString()
const;
183 voidFromString(
const string&
str);
194 voidLighten(
floatscale);
199 voidDarken(
floatscale);
205 static const char* ColorStrFromName(
const string& desc);
234 static voidRgbToHsv(
const CRgbaColor& rgb,
float& h,
float& s,
float& v);
235 static CRgbaColorHsvToRgb(
floath,
floats,
floatv);
241 static voidRgbToYuv(
const CRgbaColor& rgb,
float& y,
float& u,
float& v);
246 static boolYuvToRgb(
floaty,
floatu,
floatv,
CRgbaColor& rgb);
255 static floatBrightness(
const CRgbaColor& rgb);
263 CRgbaColorContrastingColor(
boolonlyBW =
true)
const;
296 m_Rgba[0] = float(
r) / 255.0f;
303 m_Rgba[1] = float(
g) / 255.0f;
310 m_Rgba[2] = float(
b) / 255.0f;
317 m_Rgba[3] = float(
a) / 255.0f;
347 return(
unsigned char) (
m_Rgba[0] * 255.0f);
353 return(
unsigned char) (
m_Rgba[1] * 255.0f);
359 return(
unsigned char) (
m_Rgba[2] * 255.0f);
365 return(
unsigned char) (
m_Rgba[3] * 255.0f);
class CRgbaColor provides a simple abstraction for managing colors.
Include a standard set of the NCBI C++ Toolkit most basic headers.
CRgbaColor & GetColor(CSeqFeatData::ESubtype subtype)
static const char * str(char *buf, int n)
unsigned char GetRedUC(void) const
Get specific channels in unsigned char values.
float GetBlue(void) const
float GetGreen(void) const
unsigned char GetGreenUC(void) const
unsigned char GetAlphaUC(void) const
float GetAlpha(void) const
bool operator<(const CRgbaColor &c1, const CRgbaColor &c2)
define a some-what arbitrary sort order based on brightness It does have the property of being equiva...
CRgbaColor operator*(const CRgbaColor &c1, float f)
multiply a color by a scalar
const float * GetColorArray(void) const
Access the color array directly.
unsigned char GetBlueUC(void) const
CRgbaColor operator+(const CRgbaColor &c1, const CRgbaColor &c2)
add two colors
bool operator==(const CRgbaColor &c1, const CRgbaColor &c2)
global comparison operator
CVect3< unsigned char > GetRgbUC()
void SetRed(float r)
Set specific channels from floating point values.
CVect4< unsigned char > GetRgbaUC()
float GetRed(void) const
Get specific channels in floating point values.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::ostream CNcbiOstream
Portable alias for ostream.
#define NCBI_GUIUTILS_EXPORT
CNcbiMatrix< T > & operator+=(CNcbiMatrix< T > &, const CNcbiMatrix< U > &)
global addition: matrix += matrix
CNcbiMatrix< T > & operator*=(CNcbiMatrix< T > &, const CNcbiMatrix< U > &)
global multiplication: matrix *= matrix
const struct ncbi::grid::netcache::search::fields::SIZE size
double r(size_t dimension_, const Int4 *score_, const double *prob_, double theta_)
int g(Seg_Gsm *spe, Seq_Mtf *psm, Thd_Gsm *tdg)
string ToString(const wxRect &rc)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4