From b6065b7198b3ddfe0c1d3aacb15ac27479066288 Mon Sep 17 00:00:00 2001 From: Abe Pazos Date: Sat, 16 May 2020 18:00:39 +0200 Subject: [PATCH] background() deprecated, replace with clear() (#101) --- orx-camera/src/main/kotlin/AxisHelper.kt | 2 +- orx-compositor/src/main/kotlin/Compositor.kt | 8 ++++---- .../src/main/kotlin/FilterExtension.kt | 4 ++-- orx-gui/src/demo/kotlin/DemoOptions01.kt | 6 +++--- orx-jumpflood/src/demo/kotlin/DemoShapeSDF02.kt | 2 +- orx-jumpflood/src/demo/kotlin/DemoShapeSDF03.kt | 2 +- orx-jumpflood/src/demo/kotlin/DemoShapeSDF04.kt | 2 +- orx-jumpflood/src/demo/kotlin/DemoShapeSDF05.kt | 2 +- orx-jumpflood/src/demo/kotlin/DemoSkeleton01.kt | 2 +- .../src/demo/kotlin/DemoStraightSkeleton01.kt | 2 +- orx-mesh-generators/src/demo/kotlin/DemoBox.kt | 2 +- orx-no-clear/src/main/kotlin/NoClear.kt | 2 +- orx-noise/src/demo/kotlin/DemoPoissonDiskSampling.kt | 2 +- orx-panel/src/demo/kotlin/DemoHorizontalLayout01.kt | 2 +- .../main/kotlin/org/openrndr/panel/ControlManager.kt | 8 ++++---- .../main/kotlin/org/openrndr/panel/elements/Canvas.kt | 2 +- .../src/demo/kotlin/DemoRabbitControl.kt | 2 +- .../src/demo/kotlin/DemoRabbitControlManualOverlay.kt | 2 +- orx-runway/src/demo/kotlin/DemoBiGAN01.kt | 2 +- orx-runway/src/demo/kotlin/DemoBiGAN02.kt | 2 +- orx-runway/src/demo/kotlin/DemoCaptionToImage01.kt | 4 ++-- orx-runway/src/demo/kotlin/DemoDensePose01.kt | 2 +- orx-syphon/src/test/kotlin/ClientExample.kt | 2 +- .../src/test/kotlin/ClientExampleSpecificServer.kt | 2 +- orx-syphon/src/test/kotlin/ServerExample.kt | 2 +- .../test/kotlin/ServerExampleAlternateRenderTarget.kt | 4 ++-- orx-temporal-blur/src/main/kotlin/TemporalBlur.kt | 10 +++++----- orx-timer/src/demo/kotlin/DemoRepeat02.kt | 2 +- 28 files changed, 43 insertions(+), 43 deletions(-) diff --git a/orx-camera/src/main/kotlin/AxisHelper.kt b/orx-camera/src/main/kotlin/AxisHelper.kt index 8cd50fd6..a0294638 100644 --- a/orx-camera/src/main/kotlin/AxisHelper.kt +++ b/orx-camera/src/main/kotlin/AxisHelper.kt @@ -34,7 +34,7 @@ class AxisHelper(var size: Int = 80) : Extension { drawer.defaults() drawer.ortho(fbo) - drawer.background(ColorRGBa.TRANSPARENT) + drawer.clear(ColorRGBa.TRANSPARENT) drawer.stroke = null drawer.fill = ColorRGBa.PINK.opacify(0.7) drawer.circle(axisLength, axisLength, axisLength) diff --git a/orx-compositor/src/main/kotlin/Compositor.kt b/orx-compositor/src/main/kotlin/Compositor.kt index de285530..d4afb9d4 100644 --- a/orx-compositor/src/main/kotlin/Compositor.kt +++ b/orx-compositor/src/main/kotlin/Compositor.kt @@ -77,7 +77,7 @@ open class Layer internal constructor() { copyLayers.forEach { drawer.isolatedWithTarget(target) { clearColor?.let { - drawer.background(it) + drawer.clear(it) } it.layerTarget?.let { copyTarget -> @@ -96,7 +96,7 @@ open class Layer internal constructor() { drawer.isolatedWithTarget(maskRt) { if (copyLayers.isEmpty()) { clearColor?.let { color -> - drawer.background(color) + drawer.clear(color) } } drawer.fill = ColorRGBa.WHITE @@ -109,7 +109,7 @@ open class Layer internal constructor() { drawer.isolatedWithTarget(target) { if (copyLayers.isEmpty()) { clearColor?.let { - drawer.background(it) + drawer.clear(it) } } drawFunc() @@ -182,7 +182,7 @@ open class Layer internal constructor() { } layerTarget?.let { drawer.withTarget(it) { - drawer.background(ColorRGBa.TRANSPARENT) + drawer.clear(ColorRGBa.TRANSPARENT) } } } diff --git a/orx-filter-extension/src/main/kotlin/FilterExtension.kt b/orx-filter-extension/src/main/kotlin/FilterExtension.kt index c11b4695..b541605d 100644 --- a/orx-filter-extension/src/main/kotlin/FilterExtension.kt +++ b/orx-filter-extension/src/main/kotlin/FilterExtension.kt @@ -36,13 +36,13 @@ fun Program.extend(filter: F, configuration: F.() -> Unit = {}): Ex renderTarget?.let { drawer.withTarget(it) { - background(program.backgroundColor ?: ColorRGBa.TRANSPARENT) + clear(program.backgroundColor ?: ColorRGBa.TRANSPARENT) } } } renderTarget?.bind() program.backgroundColor?.let { - drawer.background(it) + drawer.clear(it) } } diff --git a/orx-gui/src/demo/kotlin/DemoOptions01.kt b/orx-gui/src/demo/kotlin/DemoOptions01.kt index 80930632..f4e2db3d 100644 --- a/orx-gui/src/demo/kotlin/DemoOptions01.kt +++ b/orx-gui/src/demo/kotlin/DemoOptions01.kt @@ -32,9 +32,9 @@ fun main() = application { extend(gui) extend { when(settings.option) { - BackgroundColors.Pink -> drawer.background(ColorRGBa.PINK) - BackgroundColors.Black -> drawer.background(ColorRGBa.BLACK) - BackgroundColors.Yellow -> drawer.background(ColorRGBa.YELLOW) + BackgroundColors.Pink -> drawer.clear(ColorRGBa.PINK) + BackgroundColors.Black -> drawer.clear(ColorRGBa.BLACK) + BackgroundColors.Yellow -> drawer.clear(ColorRGBa.YELLOW) } } } diff --git a/orx-jumpflood/src/demo/kotlin/DemoShapeSDF02.kt b/orx-jumpflood/src/demo/kotlin/DemoShapeSDF02.kt index 4aac9990..68a66963 100644 --- a/orx-jumpflood/src/demo/kotlin/DemoShapeSDF02.kt +++ b/orx-jumpflood/src/demo/kotlin/DemoShapeSDF02.kt @@ -38,7 +38,7 @@ fun main() { } } extend { - drawer.background(ColorRGBa.PINK) + drawer.clear(ColorRGBa.PINK) sdf0.setShapes(shapes.mapIndexed { index, it -> it.transform(transform { diff --git a/orx-jumpflood/src/demo/kotlin/DemoShapeSDF03.kt b/orx-jumpflood/src/demo/kotlin/DemoShapeSDF03.kt index 02df9dc7..0829bc90 100644 --- a/orx-jumpflood/src/demo/kotlin/DemoShapeSDF03.kt +++ b/orx-jumpflood/src/demo/kotlin/DemoShapeSDF03.kt @@ -39,7 +39,7 @@ fun main() { } } extend { - drawer.background(ColorRGBa.PINK) + drawer.clear(ColorRGBa.PINK) fd.apply(emptyArray(), uvmap) diff --git a/orx-jumpflood/src/demo/kotlin/DemoShapeSDF04.kt b/orx-jumpflood/src/demo/kotlin/DemoShapeSDF04.kt index a35f8c6c..bd05f43a 100644 --- a/orx-jumpflood/src/demo/kotlin/DemoShapeSDF04.kt +++ b/orx-jumpflood/src/demo/kotlin/DemoShapeSDF04.kt @@ -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) diff --git a/orx-jumpflood/src/demo/kotlin/DemoShapeSDF05.kt b/orx-jumpflood/src/demo/kotlin/DemoShapeSDF05.kt index fd348837..1cef4c09 100644 --- a/orx-jumpflood/src/demo/kotlin/DemoShapeSDF05.kt +++ b/orx-jumpflood/src/demo/kotlin/DemoShapeSDF05.kt @@ -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 diff --git a/orx-jumpflood/src/demo/kotlin/DemoSkeleton01.kt b/orx-jumpflood/src/demo/kotlin/DemoSkeleton01.kt index 09905840..8c4ed819 100644 --- a/orx-jumpflood/src/demo/kotlin/DemoSkeleton01.kt +++ b/orx-jumpflood/src/demo/kotlin/DemoSkeleton01.kt @@ -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 diff --git a/orx-jumpflood/src/demo/kotlin/DemoStraightSkeleton01.kt b/orx-jumpflood/src/demo/kotlin/DemoStraightSkeleton01.kt index b8aeef86..f813d6c4 100644 --- a/orx-jumpflood/src/demo/kotlin/DemoStraightSkeleton01.kt +++ b/orx-jumpflood/src/demo/kotlin/DemoStraightSkeleton01.kt @@ -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 diff --git a/orx-mesh-generators/src/demo/kotlin/DemoBox.kt b/orx-mesh-generators/src/demo/kotlin/DemoBox.kt index 853a57ae..5e14934b 100644 --- a/orx-mesh-generators/src/demo/kotlin/DemoBox.kt +++ b/orx-mesh-generators/src/demo/kotlin/DemoBox.kt @@ -29,7 +29,7 @@ fun main() { eye = Vector3(1.0, 1.0, 1.0) } extend { - drawer.background(ColorRGBa.PINK) + drawer.clear(ColorRGBa.PINK) drawer.shadeStyle = shadeStyle { fragmentTransform = """ x_fill = texture(p_texture, va_texCoord0.xy); diff --git a/orx-no-clear/src/main/kotlin/NoClear.kt b/orx-no-clear/src/main/kotlin/NoClear.kt index b68d5283..314a241d 100644 --- a/orx-no-clear/src/main/kotlin/NoClear.kt +++ b/orx-no-clear/src/main/kotlin/NoClear.kt @@ -33,7 +33,7 @@ class NoClear : Extension { renderTarget?.let { drawer.withTarget(it) { - background(program.backgroundColor ?: ColorRGBa.TRANSPARENT) + clear(program.backgroundColor ?: ColorRGBa.TRANSPARENT) backdrop?.invoke() // draw custom backdrop } } diff --git a/orx-noise/src/demo/kotlin/DemoPoissonDiskSampling.kt b/orx-noise/src/demo/kotlin/DemoPoissonDiskSampling.kt index 24ad670b..2e3b1657 100644 --- a/orx-noise/src/demo/kotlin/DemoPoissonDiskSampling.kt +++ b/orx-noise/src/demo/kotlin/DemoPoissonDiskSampling.kt @@ -25,7 +25,7 @@ fun main() { val circlePoints = points.map { Circle(Vector2(350.0, 100.0) + it, 3.0) } extend { - drawer.background(ColorRGBa.BLACK) + drawer.clear(ColorRGBa.BLACK) drawer.stroke = null drawer.fill = ColorRGBa.PINK diff --git a/orx-panel/src/demo/kotlin/DemoHorizontalLayout01.kt b/orx-panel/src/demo/kotlin/DemoHorizontalLayout01.kt index ad09f592..351675f3 100644 --- a/orx-panel/src/demo/kotlin/DemoHorizontalLayout01.kt +++ b/orx-panel/src/demo/kotlin/DemoHorizontalLayout01.kt @@ -73,7 +73,7 @@ fun main() = application { } extend(cm) extend { - drawer.background(0.2, 0.18, 0.16, 1.0) + drawer.clear(0.2, 0.18, 0.16, 1.0) } } } \ No newline at end of file diff --git a/orx-panel/src/main/kotlin/org/openrndr/panel/ControlManager.kt b/orx-panel/src/main/kotlin/org/openrndr/panel/ControlManager.kt index b9980043..747c7f85 100644 --- a/orx-panel/src/main/kotlin/org/openrndr/panel/ControlManager.kt +++ b/orx-panel/src/main/kotlin/org/openrndr/panel/ControlManager.kt @@ -379,7 +379,7 @@ class ControlManager : Extension { } renderTarget.bind() - program.drawer.background(ColorRGBa.BLACK.opacify(0.0)) + program.drawer.clear(ColorRGBa.BLACK.opacify(0.0)) renderTarget.unbind() renderTargetCache.forEach { (_, u) -> u.destroy() } @@ -422,7 +422,7 @@ class ControlManager : Extension { } rt.bind() - drawer.background(ColorRGBa.BLACK.opacify(0.0)) + drawer.clear(ColorRGBa.BLACK.opacify(0.0)) drawer.pushProjection() drawer.ortho(rt) @@ -486,7 +486,7 @@ class ControlManager : Extension { } renderTarget.bind() - program.drawer.background(ColorRGBa.BLACK.opacify(0.0)) + program.drawer.clear(ColorRGBa.BLACK.opacify(0.0)) renderTarget.unbind() } } @@ -507,7 +507,7 @@ class ControlManager : Extension { body?.style?.height = program.height.px body?.let { - program.drawer.background(ColorRGBa.BLACK.opacify(0.0)) + program.drawer.clear(ColorRGBa.BLACK.opacify(0.0)) layouter.computeStyles(it) layouter.layout(it) drawElement(it, program.drawer, 0, 0) diff --git a/orx-panel/src/main/kotlin/org/openrndr/panel/elements/Canvas.kt b/orx-panel/src/main/kotlin/org/openrndr/panel/elements/Canvas.kt index e758dbb0..098dd6d1 100644 --- a/orx-panel/src/main/kotlin/org/openrndr/panel/elements/Canvas.kt +++ b/orx-panel/src/main/kotlin/org/openrndr/panel/elements/Canvas.kt @@ -32,7 +32,7 @@ class Canvas : Element(ElementType("canvas")) { drawer.isolatedWithTarget(rt) { model = Matrix44.IDENTITY view = Matrix44.IDENTITY - background(ColorRGBa.TRANSPARENT) + clear(ColorRGBa.TRANSPARENT) size(screenArea.width.toInt(), screenArea.height.toInt()) ortho(rt) userDraw?.invoke(this) diff --git a/orx-rabbit-control/src/demo/kotlin/DemoRabbitControl.kt b/orx-rabbit-control/src/demo/kotlin/DemoRabbitControl.kt index 78a79079..7abb406a 100644 --- a/orx-rabbit-control/src/demo/kotlin/DemoRabbitControl.kt +++ b/orx-rabbit-control/src/demo/kotlin/DemoRabbitControl.kt @@ -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 diff --git a/orx-rabbit-control/src/demo/kotlin/DemoRabbitControlManualOverlay.kt b/orx-rabbit-control/src/demo/kotlin/DemoRabbitControlManualOverlay.kt index 4de1f7c4..405ec0fd 100644 --- a/orx-rabbit-control/src/demo/kotlin/DemoRabbitControlManualOverlay.kt +++ b/orx-rabbit-control/src/demo/kotlin/DemoRabbitControlManualOverlay.kt @@ -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) } diff --git a/orx-runway/src/demo/kotlin/DemoBiGAN01.kt b/orx-runway/src/demo/kotlin/DemoBiGAN01.kt index 642ff3a0..a584b7a3 100644 --- a/orx-runway/src/demo/kotlin/DemoBiGAN01.kt +++ b/orx-runway/src/demo/kotlin/DemoBiGAN01.kt @@ -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 diff --git a/orx-runway/src/demo/kotlin/DemoBiGAN02.kt b/orx-runway/src/demo/kotlin/DemoBiGAN02.kt index 60f7fdde..7aae074e 100644 --- a/orx-runway/src/demo/kotlin/DemoBiGAN02.kt +++ b/orx-runway/src/demo/kotlin/DemoBiGAN02.kt @@ -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) } diff --git a/orx-runway/src/demo/kotlin/DemoCaptionToImage01.kt b/orx-runway/src/demo/kotlin/DemoCaptionToImage01.kt index 81867a51..1ff64a5b 100644 --- a/orx-runway/src/demo/kotlin/DemoCaptionToImage01.kt +++ b/orx-runway/src/demo/kotlin/DemoCaptionToImage01.kt @@ -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)) diff --git a/orx-runway/src/demo/kotlin/DemoDensePose01.kt b/orx-runway/src/demo/kotlin/DemoDensePose01.kt index f78f6d54..86aead3d 100644 --- a/orx-runway/src/demo/kotlin/DemoDensePose01.kt +++ b/orx-runway/src/demo/kotlin/DemoDensePose01.kt @@ -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) } diff --git a/orx-syphon/src/test/kotlin/ClientExample.kt b/orx-syphon/src/test/kotlin/ClientExample.kt index 6744fc6b..3e319319 100644 --- a/orx-syphon/src/test/kotlin/ClientExample.kt +++ b/orx-syphon/src/test/kotlin/ClientExample.kt @@ -14,7 +14,7 @@ fun main() = application { extend(syphonClient) extend { - drawer.background(ColorRGBa.BLACK) + drawer.clear(ColorRGBa.BLACK) drawer.image(syphonClient.buffer) } } diff --git a/orx-syphon/src/test/kotlin/ClientExampleSpecificServer.kt b/orx-syphon/src/test/kotlin/ClientExampleSpecificServer.kt index 913507f0..3d886a16 100644 --- a/orx-syphon/src/test/kotlin/ClientExampleSpecificServer.kt +++ b/orx-syphon/src/test/kotlin/ClientExampleSpecificServer.kt @@ -18,7 +18,7 @@ fun main() = application { extend(syphonClient) extend { - drawer.background(ColorRGBa.BLACK) + drawer.clear(ColorRGBa.BLACK) drawer.image(syphonClient.buffer) } } diff --git a/orx-syphon/src/test/kotlin/ServerExample.kt b/orx-syphon/src/test/kotlin/ServerExample.kt index b3af2f4a..e0b14bfd 100644 --- a/orx-syphon/src/test/kotlin/ServerExample.kt +++ b/orx-syphon/src/test/kotlin/ServerExample.kt @@ -14,7 +14,7 @@ fun main() = application { extend(SyphonServer("Test")) extend { - drawer.background(ColorRGBa.PINK) + drawer.clear(ColorRGBa.PINK) drawer.fill = ColorRGBa.WHITE drawer.circle(drawer.bounds.center, abs(cos(seconds)) * height * 0.5) } diff --git a/orx-syphon/src/test/kotlin/ServerExampleAlternateRenderTarget.kt b/orx-syphon/src/test/kotlin/ServerExampleAlternateRenderTarget.kt index 3a38ab70..78a28532 100644 --- a/orx-syphon/src/test/kotlin/ServerExampleAlternateRenderTarget.kt +++ b/orx-syphon/src/test/kotlin/ServerExampleAlternateRenderTarget.kt @@ -25,10 +25,10 @@ fun main() = application { * This is what will be sent to Syphon, and drawn in a small corner of the screen */ drawer.isolatedWithTarget(rt) { - drawer.background(ColorRGBa(sin(seconds), cos(seconds / 2.0), 0.5, 1.0)) + drawer.clear(ColorRGBa(sin(seconds), cos(seconds / 2.0), 0.5, 1.0)) } - drawer.background(ColorRGBa.PINK) + drawer.clear(ColorRGBa.PINK) drawer.fill = ColorRGBa.WHITE drawer.circle(drawer.bounds.center, abs(cos(seconds)) * height * 0.5) drawer.image(rt.colorBuffer(0)) diff --git a/orx-temporal-blur/src/main/kotlin/TemporalBlur.kt b/orx-temporal-blur/src/main/kotlin/TemporalBlur.kt index 9863c605..9b05dfa4 100644 --- a/orx-temporal-blur/src/main/kotlin/TemporalBlur.kt +++ b/orx-temporal-blur/src/main/kotlin/TemporalBlur.kt @@ -124,7 +124,7 @@ class TemporalBlur : Extension { accumulator?.let { drawer.withTarget(it) { - drawer.background(ColorRGBa.BLACK) + drawer.clear(ColorRGBa.BLACK) } } val oldClock = program.clock @@ -133,7 +133,7 @@ class TemporalBlur : Extension { for (i in samples - 1 downTo 1) { image?.bind() - drawer.background(ColorRGBa.BLACK) + drawer.clear(ColorRGBa.BLACK) program.clock = { oldClockValue - (i * duration) / (fps * samples) } // I guess we need something better here. @@ -169,7 +169,7 @@ class TemporalBlur : Extension { } image?.let { drawer.withTarget(it) { - drawer.background(ColorRGBa.BLACK) + drawer.clear(ColorRGBa.BLACK) } } image?.bind() @@ -191,7 +191,7 @@ class TemporalBlur : Extension { drawer.isolatedWithTarget(result!!) { drawer.drawStyle.blendMode = BlendMode.OVER - drawer.background(ColorRGBa.BLACK) + drawer.clear(ColorRGBa.BLACK) drawer.drawStyle.colorMatrix = tint(ColorRGBa.WHITE.shade(1.0 / samples)) drawer.image(accumulator!!.colorBuffer(0)) } @@ -202,7 +202,7 @@ class TemporalBlur : Extension { drawer.drawStyle.colorMatrix = Matrix55.IDENTITY drawer.drawStyle.depthTestPass = DepthTestPass.ALWAYS - drawer.background(ColorRGBa.BLACK) + drawer.clear(ColorRGBa.BLACK) drawer.image(result!!.colorBuffer(0)) } } diff --git a/orx-timer/src/demo/kotlin/DemoRepeat02.kt b/orx-timer/src/demo/kotlin/DemoRepeat02.kt index 9fa784a3..f4a1f994 100644 --- a/orx-timer/src/demo/kotlin/DemoRepeat02.kt +++ b/orx-timer/src/demo/kotlin/DemoRepeat02.kt @@ -24,7 +24,7 @@ fun main() = application { } } extend { - drawer.background(ColorRGBa.PINK) + drawer.clear(ColorRGBa.PINK) // -- by explicitly calling deliver we know that the drawing code in the listener will be // -- executed exactly here event.deliver()