mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 09:34:19 +00:00
No iostream
This commit is contained in:
parent
65a17599e1
commit
54afd2c5af
|
@ -2,7 +2,6 @@
|
||||||
#ifndef BASE_COLOR_H
|
#ifndef BASE_COLOR_H
|
||||||
#define BASE_COLOR_H
|
#define BASE_COLOR_H
|
||||||
|
|
||||||
#include <iostream>
|
|
||||||
#include "math.h"
|
#include "math.h"
|
||||||
#include "vmath.h"
|
#include "vmath.h"
|
||||||
|
|
||||||
|
@ -129,9 +128,6 @@ inline ColorHSLA color_cast(const ColorRGBA &rgb)
|
||||||
float l = 0.5f * (Max + Min);
|
float l = 0.5f * (Max + Min);
|
||||||
float s = (Max != 0.0f && Min != 1.0f) ? (c/(1 - (absolute(2 * l - 1)))) : 0;
|
float s = (Max != 0.0f && Min != 1.0f) ? (c/(1 - (absolute(2 * l - 1)))) : 0;
|
||||||
|
|
||||||
|
|
||||||
std::cout << "H: " << h << " S: " << s << " L: " << l << " C: " << c << std::endl;
|
|
||||||
|
|
||||||
return ColorHSLA(h, s, l, rgb.a);
|
return ColorHSLA(h, s, l, rgb.a);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue