background() deprecated, replace with clear() (#101)

This commit is contained in:
Abe Pazos
2020-05-16 18:00:39 +02:00
committed by GitHub
parent 7c9c87ea3f
commit b6065b7198
28 changed files with 43 additions and 43 deletions

View File

@@ -24,7 +24,7 @@ fun main() = application {
val alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
extend {
drawer.isolatedWithTarget(rt) {
drawer.background(ColorRGBa.BLACK)
drawer.clear(ColorRGBa.BLACK)
drawer.ortho(rt)
val it = seconds.toInt()
val t = seconds-it

View File

@@ -24,7 +24,7 @@ fun main() = application {
drawer.isolatedWithTarget(rt) {
drawer.ortho(rt)
drawer.background(ColorRGBa.BLACK)
drawer.clear(ColorRGBa.BLACK)
drawer.image(startImage, (rt.width - startImage.width)/2.0, (rt.height - startImage.height) / 2.0)
}

View File

@@ -20,8 +20,8 @@ fun main() = application {
program {
val runwayHost = "http://localhost:8000/query"
val dictionary = URL(resourceUrl("/data/dictionary/words.txt")).readText().split("\n")
val font = loadFont(resourceUrl("/data/fonts/IBMPlexMono-Regular.ttf"), 72.0)
val dictionary = URL("demo-data/dictionary/words.txt").readText().split("\n")
val font = loadFont("demo-data/fonts/IBMPlexMono-Regular.ttf", 72.0)
extend {
val text = dictionary.random()
val result: AttnGANResult = runwayQuery(runwayHost, AttnGANRequest(text))

View File

@@ -22,7 +22,7 @@ fun main() = application {
drawer.isolatedWithTarget(rt) {
drawer.ortho(rt)
drawer.background(ColorRGBa.BLACK)
drawer.clear(ColorRGBa.BLACK)
drawer.image(startImage, (rt.width - startImage.width)/2.0, (rt.height - startImage.height) / 2.0)
}