[orx-color] Color model changes (#246)

This commit is contained in:
Vechro
2022-07-11 16:40:05 +03:00
committed by GitHub
parent 82502d9d54
commit 5b7327eda1
11 changed files with 218 additions and 217 deletions

View File

@@ -217,7 +217,7 @@ class RabbitControlServer(private val showQRUntilClientConnects: Boolean = true,
ParameterType.Color -> {
val param = rabbitServer.createRGBAParameter(it.label)
val c = (it.property as KMutableProperty1<Any, ColorRGBa>).get(objectWithParameters)
param.value = Color(c.r.toFloat(), c.g.toFloat(), c.b.toFloat(), c.a.toFloat())
param.value = Color(c.r.toFloat(), c.g.toFloat(), c.b.toFloat(), c.alpha.toFloat())
param
}
ParameterType.Vector2 -> {