This commit is contained in:
Carlos Ballesteros Velasco
2020-05-23 21:01:22 +02:00
parent 1c2cad12bc
commit 1771b7ca7f
2 changed files with 3 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
korgePluginVersion=1.12.7.1
#korgeVersion=1.12.7-SNAPSHOT
korgePluginVersion=1.12.8.0
#korgeVersion=1.12.8-SNAPSHOT
#korimVersion=1.12.15
#korimVersion=1.12.11-SNAPSHOT
#korioVersion=1.11.2-SNAPSHOT

View File

@@ -13,7 +13,7 @@ suspend fun main() = Korge(bgcolor = Colors["#333"]) {
text("Hello World 2!", textSize = 32.0, font = font1) {
val text = this
fun center() {
position(views.virtualWidth / 2 - width / 2, views.virtualHeight / 2)
position(views.virtualWidth / 2 - width.toInt() / 2, views.virtualHeight / 2)
}
//filter = Convolute3Filter(Convolute3Filter.KERNEL_GAUSSIAN_BLUR)
center()