Skip to content

Commit ff5eb89

Browse files
ItsEmpalineargraph
authored andcommitted
fix: properties not being val
1 parent d213385 commit ff5eb89

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

common/src/main/java/io/github/notenoughupdates/moulconfig/ChromaColour.kt

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,33 @@ import java.awt.Color
55

66
@Suppress("DeprecatedCallableAddReplaceWith", "DEPRECATION")
77
data class ChromaColour(
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-
var hue: Float,
13-
/**
14-
* Saturation in a range from 0 to 1
15-
*/
16-
@Expose
17-
var saturation: Float,
18-
/**
19-
* Brightness in a range from 0 to 1
20-
*/
21-
@Expose
22-
var brightness: 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-
var timeForFullRotationInMillis: Int,
29-
/**
30-
* Alpha in a range from 0 to 255 (with 255 being fully opaque).
31-
*/
32-
@Expose
33-
var alpha: 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+
val hue: Float,
13+
/**
14+
* Saturation in a range from 0 to 1
15+
*/
16+
@Expose
17+
val saturation: Float,
18+
/**
19+
* Brightness in a range from 0 to 1
20+
*/
21+
@Expose
22+
val brightness: 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+
val timeForFullRotationInMillis: Int,
29+
/**
30+
* Alpha in a range from 0 to 255 (with 255 being fully opaque).
31+
*/
32+
@Expose
33+
val alpha: Int,
34+
) {
3535
private val cachedRGB: Int = (Color.HSBtoRGB(hue, saturation, brightness) and 0x00FFFFFF) or (alpha shl 24)
3636

3737
/**

0 commit comments

Comments
 (0)