canvi de pc

This commit is contained in:
2025-06-27 23:07:31 +02:00
parent 13860af98e
commit ac8d168893
5 changed files with 24 additions and 34 deletions

View File

@@ -474,31 +474,6 @@ constexpr Color hsvToRgb(HSV hsv)
static_cast<uint8_t>(roundf((b + m) * 255)));
}
/*ColorCycle generateMirroredCycle(Color base)
{
ColorCycle result{};
HSV baseHSV = rgbToHsv(base);
for (size_t i = 0; i < COLOR_CYCLE_SIZE; ++i)
{
float t = static_cast<float>(i) / (COLOR_CYCLE_SIZE - 1);
float hueShift = 25.0f * t; // reducido de 45 a 25
float satShift = 0.0f; // sin cambio de saturación
float valShift = 0.07f * sinf(t * 3.1415926f); // brillo más suave
HSV adjusted = {
fmodf(baseHSV.h + hueShift, 360.0f),
fminf(1.0f, fmaxf(0.0f, baseHSV.s + satShift)),
fminf(1.0f, fmaxf(0.0f, baseHSV.v + valShift))};
Color c = hsvToRgb(adjusted);
result[i] = c;
result[2 * COLOR_CYCLE_SIZE - 1 - i] = c; // espejo
}
return result;
}*/
ColorCycle generateMirroredCycle(Color base, ColorCycleStyle style)
{
ColorCycle result{};