Commit 6ed2752f authored by Roman Sedaikin's avatar Roman Sedaikin

Fix [Clocks] sample.

parent 113f6ec6
...@@ -8,7 +8,6 @@ import org.jetbrains.skia.paragraph.TextStyle ...@@ -8,7 +8,6 @@ import org.jetbrains.skia.paragraph.TextStyle
import org.jetbrains.skiko.SkikoView import org.jetbrains.skiko.SkikoView
import org.jetbrains.skiko.SkikoPointerEvent import org.jetbrains.skiko.SkikoPointerEvent
import org.jetbrains.skiko.isLeftClick import org.jetbrains.skiko.isLeftClick
import org.jetbrains.skiko.currentSystemTheme
import kotlin.math.cos import kotlin.math.cos
import kotlin.math.sin import kotlin.math.sin
import kotlin.math.PI import kotlin.math.PI
...@@ -69,16 +68,7 @@ class Clocks: SkikoView { ...@@ -69,16 +68,7 @@ class Clocks: SkikoView {
} }
} }
val style = ParagraphStyle() val style = ParagraphStyle()
val title = ParagraphBuilder(style, fontCollection)
.pushStyle(TextStyle().setColor(0xFF000000.toInt()))
.addText("Graphics API: Metal ✿゚ $currentSystemTheme")
.popStyle()
.build()
title.layout(Float.POSITIVE_INFINITY)
title.paint(canvas, 5f, 5f)
val frames = ParagraphBuilder(style, fontCollection) val frames = ParagraphBuilder(style, fontCollection)
.pushStyle(TextStyle().setColor(0xFFFFAA0A.toInt()).setFontSize(25f)) .pushStyle(TextStyle().setColor(0xFFFFAA0A.toInt()).setFontSize(25f))
.addText("Frames: ${frame++}") .addText("Frames: ${frame++}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment