You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Hue in a range from 0 to 1. For a chroma colour this is added to the time as an offset.
10
-
*/
11
-
@Expose
12
-
varhue:Float,
13
-
/**
14
-
* Saturation in a range from 0 to 1
15
-
*/
16
-
@Expose
17
-
varsaturation:Float,
18
-
/**
19
-
* Brightness in a range from 0 to 1
20
-
*/
21
-
@Expose
22
-
varbrightness:Float,
23
-
/**
24
-
* If set to 0, this indicates a static colour. If set to a value above 0, indicates the amount of milliseconds that pass until the same colour is met again.
25
-
* This value may be saved lossy.
26
-
*/
27
-
@Expose
28
-
vartimeForFullRotationInMillis:Int,
29
-
/**
30
-
* Alpha in a range from 0 to 255 (with 255 being fully opaque).
31
-
*/
32
-
@Expose
33
-
varalpha:Int,
34
-
) {
8
+
/**
9
+
* Hue in a range from 0 to 1. For a chroma colour this is added to the time as an offset.
10
+
*/
11
+
@Expose
12
+
valhue:Float,
13
+
/**
14
+
* Saturation in a range from 0 to 1
15
+
*/
16
+
@Expose
17
+
valsaturation:Float,
18
+
/**
19
+
* Brightness in a range from 0 to 1
20
+
*/
21
+
@Expose
22
+
valbrightness:Float,
23
+
/**
24
+
* If set to 0, this indicates a static colour. If set to a value above 0, indicates the amount of milliseconds that pass until the same colour is met again.
25
+
* This value may be saved lossy.
26
+
*/
27
+
@Expose
28
+
valtimeForFullRotationInMillis:Int,
29
+
/**
30
+
* Alpha in a range from 0 to 255 (with 255 being fully opaque).
31
+
*/
32
+
@Expose
33
+
valalpha:Int,
34
+
) {
35
35
privateval cachedRGB:Int= (Color.HSBtoRGB(hue, saturation, brightness) and0x00FFFFFF) or (alpha shl 24)
0 commit comments