background() deprecated, replace with clear() (#101)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user