background() deprecated, replace with clear() (#101)
This commit is contained in:
@@ -38,7 +38,7 @@ fun main() {
|
||||
}
|
||||
}
|
||||
extend {
|
||||
drawer.background(ColorRGBa.PINK)
|
||||
drawer.clear(ColorRGBa.PINK)
|
||||
|
||||
sdf0.setShapes(shapes.mapIndexed { index, it ->
|
||||
it.transform(transform {
|
||||
|
||||
@@ -39,7 +39,7 @@ fun main() {
|
||||
}
|
||||
}
|
||||
extend {
|
||||
drawer.background(ColorRGBa.PINK)
|
||||
drawer.clear(ColorRGBa.PINK)
|
||||
|
||||
fd.apply(emptyArray(), uvmap)
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ fun main() {
|
||||
}
|
||||
extend(gui)
|
||||
extend {
|
||||
drawer.background(ColorRGBa.PINK)
|
||||
drawer.clear(ColorRGBa.PINK)
|
||||
|
||||
perturb.phase = seconds * 0.1
|
||||
perturb.apply(uvmap, uvmap)
|
||||
|
||||
@@ -56,7 +56,7 @@ fun main() {
|
||||
|
||||
extend(gui)
|
||||
extend {
|
||||
drawer.background(ColorRGBa.PINK)
|
||||
drawer.clear(ColorRGBa.PINK)
|
||||
|
||||
perturb.offset = Vector2(cos(seconds*0.2), sin(seconds*0.2))
|
||||
perturb.outputUV = true
|
||||
|
||||
@@ -31,7 +31,7 @@ fun main() {
|
||||
drawer.isolatedWithTarget(input) {
|
||||
// -- draw something interesting
|
||||
drawer.stroke = null
|
||||
drawer.background(ColorRGBa.BLACK)
|
||||
drawer.clear(ColorRGBa.BLACK)
|
||||
drawer.fill = ColorRGBa.WHITE
|
||||
drawer.circle(mouse.position, 300.0)
|
||||
drawer.fill = ColorRGBa.BLACK
|
||||
|
||||
@@ -31,7 +31,7 @@ fun main() {
|
||||
drawer.isolatedWithTarget(input) {
|
||||
// -- draw something interesting
|
||||
drawer.stroke = null
|
||||
drawer.background(ColorRGBa.BLACK)
|
||||
drawer.clear(ColorRGBa.BLACK)
|
||||
drawer.fill = ColorRGBa.WHITE
|
||||
drawer.circle(mouse.position, 300.0)
|
||||
drawer.fill = ColorRGBa.BLACK
|
||||
|
||||
Reference in New Issue
Block a user