mirror of
https://codeberg.org/monocles/monocles_chat.git
synced 2025-01-16 06:32:22 +01:00
Softer XEP0392 colours from c3 branch
(cherry picked from commit bb9250f14ab6191b424b124081dbe63fa40fca91)
This commit is contained in:
parent
cc3bf8cc2e
commit
3f699de792
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue