| 241 | } |
| 242 | |
| 243 | float parseCssFloat(const ccstd::string &str) { // float or percentage. |
| 244 | if (str.length() && str.back() == '%') { |
| 245 | return clampCssFloat(parseFloat(str) / 100.0f); |
| 246 | } |
| 247 | return clampCssFloat(parseFloat(str)); |
| 248 | } |
| 249 | |
| 250 | float cssHueToRgb(float m1, float m2, float h) { |
| 251 | if (h < 0.0f) { |
no test coverage detected