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

@@ -56,7 +56,7 @@ fun main() = application {
}
extend(rabbit)
extend {
drawer.background(if (settings.b) ColorRGBa.BLUE else ColorRGBa.BLACK)
drawer.clear(if (settings.b) ColorRGBa.BLUE else ColorRGBa.BLACK)
drawer.fontMap = font
drawer.fill = settings.fill
drawer.stroke = settings.stroke

View File

@@ -43,7 +43,7 @@ fun main() = application {
}
extend {
drawer.background(if (settings.whiteOnBlack) ColorRGBa.BLACK else ColorRGBa.WHITE)
drawer.clear(if (settings.whiteOnBlack) ColorRGBa.BLACK else ColorRGBa.WHITE)
drawer.fill = if (settings.whiteOnBlack) ColorRGBa.WHITE else ColorRGBa.BLACK
drawer.circle(drawer.bounds.center, 250.0)
}