Lines Matching refs:hsl_c
669 float hsl_c[3];
670 sp_color_rgb_to_hsl_floatv (hsl_c, color[0], color[1], color[2]);
672 hsl_g[0] = hsl_c[0];
675 hsl_g[1] = hsl_c[1];
678 hsl_g[2] = hsl_c[2];
696 float hsl_c[3];
697 sp_color_rgb_to_hsl_floatv (hsl_c, color[0], color[1], color[2]);
700 hsl_c[0] += g_random_double_range(-0.5, 0.5) * force;
701 if (hsl_c[0] > 1) {
702 hsl_c[0] -= 1;
704 if (hsl_c[0] < 0) {
705 hsl_c[0] += 1;
709 hsl_c[1] += g_random_double_range(-hsl_c[1], 1 - hsl_c[1]) * force;
712 hsl_c[2] += g_random_double_range(-hsl_c[2], 1 - hsl_c[2]) * force;
715 sp_color_hsl_to_rgb_floatv (color, hsl_c[0], hsl_c[1], hsl_c[2]);