Softer XEP0392 colours from c3 branch

(cherry picked from commit bb9250f14ab6191b424b124081dbe63fa40fca91)
This commit is contained in:
Stephen Paul Weber 2024-01-06 19:27:42 -05:00 committed by 12aw
parent cc3bf8cc2e
commit 3f699de792

View file

@ -22,8 +22,8 @@ public class XEP0392Helper {
public static int rgbFromNick(String name) {
double[] hsluv = new double[3];
hsluv[0] = angle(name) * 360;
hsluv[1] = 100;
hsluv[2] = 50;
hsluv[1] = 85;
hsluv[2] = 58;
double[] rgb = HUSLColorConverter.hsluvToRgb(hsluv);
return Color.rgb((int) Math.round(rgb[0] * 255), (int) Math.round(rgb[1] * 255), (int) Math.round(rgb[2] * 255));
}