20 colorf(
float a_r,
float a_g,
float a_b,
float a_a = 1,
bool a_inc =
true):parent(a_r,a_g,a_b,a_a,a_inc){}
22 colorf(
float a_r,
float a_g,
float a_b,
float a_a = 1):
parent(a_r,a_g,a_b,a_a){}
32 float r()
const {
return v0();}
33 float g()
const {
return v1();}
34 float b()
const {
return v2();}
35 float a()
const {
return v3();}
56 #ifdef tools_stat_colorfs
64 static colorf aquamarine() {
return colorf(0.496101F,0.996109F,0.828138F);}
65 static colorf mediumaquamarine() {
return colorf(0.398444F,0.800793F,0.664073F);}
68 static colorf cadetblue() {
return colorf(0.371099F,0.617197F,0.62501F);}
69 static colorf cornflowerblue() {
return colorf(0.390631F,0.58204F,0.925795F);}
70 static colorf darkslateblue() {
return colorf(0.281254F,0.238285F,0.542977F);}
71 static colorf lightblue() {
return colorf(0.675792F,0.843763F,0.898451F);}
72 static colorf lightsteelblue() {
return colorf(0.68751F,0.765637F,0.867201F);}
73 static colorf mediumblue() {
return colorf(0,0,0.800793F);}
76 static colorf mediumslateblue() {
return colorf(0.480476F,0.406256F,0.929702F);}
77 static colorf midnightblue() {
return colorf(0.0976577F,0.0976577F,0.437507F);}
80 static colorf skyblue() {
return colorf(0.527352F,0.8047F,0.917983F);}
81 static colorf slateblue() {
return colorf(0.414069F,0.351568F,0.800793F);}
82 static colorf steelblue() {
return colorf(0.273442F,0.50782F,0.703136F);}
83 static colorf coral() {
return colorf(0.996109F,0.496101F,0.312505F);}
85 static colorf firebrick() {
return colorf(0.695323F,0.132815F,0.132815F);}
88 static colorf brown() {
return colorf(0.644541F,0.164065F,0.164065F);}
89 static colorf gold() {
return colorf(0.996109F,0.839857F,0);}
90 static colorf goldenrod() {
return colorf(0.851575F,0.644541F,0.125002F);}
92 static colorf darkgreen() {
return colorf(0,0.390631F,0);}
93 static colorf darkolivegreen() {
return colorf(0.332036F,0.417975F,0.183597F);}
94 static colorf forestgreen() {
return colorf(0.132815F,0.542977F,0.132815F);}
95 static colorf limegreen() {
return colorf(0.195315F,0.800793F,0.195315F);}
96 static colorf mediumseagreen() {
return colorf(0.234379F,0.699229F,0.441413F);}
97 static colorf mediumspringgreen() {
return colorf(0,0.976577F,0.601572F);}
100 static colorf palegreen() {
return colorf(0.593759F,0.980484F,0.593759F);}
101 static colorf seagreen() {
return colorf(0.17969F,0.542977F,0.339849F);}
102 static colorf springgreen() {
return colorf(0,0.996109F,0.496101F);}
103 static colorf yellowgreen() {
return colorf(0.601572F,0.800793F,0.195315F);}
104 static colorf darkslategrey() {
return colorf(0.183597F,0.308598F,0.308598F);}
105 static colorf dimgrey() {
return colorf(0.410163F,0.410163F,0.410163F);}
106 static colorf lightgrey() {
return colorf(0.824231F,0.824231F,0.824231F);}
107 static colorf grey() {
return colorf(0.750011F,0.750011F,0.750011F);}
108 static colorf khaki() {
return colorf(0.937514F,0.898451F,0.546883F);}
112 static colorf maroon() {
return colorf(0.68751F,0.187503F,0.375006F);}
113 static colorf orange() {
return colorf(0.996109F,0.644541F,0);}
114 static colorf orchid() {
return colorf(0.851575F,0.437507F,0.83595F);}
115 static colorf darkorchid() {
return colorf(0.597665F,0.195315F,0.796887F);}
116 static colorf mediumorchid() {
return colorf(0.726574F,0.332036F,0.824231F);}
117 static colorf pink() {
return colorf(0.996109F,0.750011F,0.792981F);}
118 static colorf plum() {
return colorf(0.863294F,0.62501F,0.863294F);}
120 static colorf indianred() {
return colorf(0.800793F,0.35938F,0.35938F);}
121 static colorf mediumvioletred() {
return colorf(0.777356F,0.0820325F,0.519539F);}
124 static colorf orangered() {
return colorf(0.996109F,0.269535F,0);}
125 static colorf violetred() {
return colorf(0.812512F,0.125002F,0.562509F);}
126 static colorf salmon() {
return colorf(0.976577F,0.500008F,0.445319F);}
127 static colorf sienna() {
return colorf(0.62501F,0.320317F,0.175784F);}
128 static colorf tan() {
return colorf(0.820325F,0.703136F,0.546883F);}
129 static colorf thistle() {
return colorf(0.843763F,0.746105F,0.843763F);}
130 static colorf turquoise() {
return colorf(0.250004F,0.875013F,0.812512F);}
131 static colorf darkturquoise() {
return colorf(0,0.8047F,0.816419F);}
132 static colorf mediumturquoise() {
return colorf(0.281254F,0.816419F,0.796887F);}
133 static colorf violet() {
return colorf(0.929702F,0.50782F,0.929702F);}
136 static colorf blueviolet() {
return colorf(0.539071F,0.167971F,0.882826F);}
137 static colorf wheat() {
return colorf(0.957046F,0.867201F,0.699229F);}
140 static colorf greenyellow() {
return colorf(0.675792F,0.996109F,0.18359F);}
147 if(a_a.
v0()<a_b.
v0())
return true;
148 if(a_a.
v0()>a_b.
v0())
return false;
150 if(a_a.
v1()<a_b.
v1())
return true;
151 if(a_a.
v1()>a_b.
v1())
return false;
153 if(a_a.
v2()<a_b.
v2())
return true;
158 #if defined(TOOLS_MEM) && !defined(TOOLS_MEM_ATEXIT)
159 inline const colorf&
colorf_default() {
static const colorf s_v(0.8f,0.8f,0.8f,1,
false);
return s_v;}