Fix demos (#331)

This commit is contained in:
Abe Pazos
2024-04-02 13:17:06 +02:00
committed by GitHub
parent 275f677cf3
commit 1060f751d7
9 changed files with 113 additions and 85 deletions

View File

@@ -0,0 +1,26 @@
import org.openrndr.application
import org.openrndr.color.ColorRGBa
import org.openrndr.extra.composition.ClipMode
import org.openrndr.extra.composition.composition
import org.openrndr.extra.composition.drawComposition
fun main() {
application {
program {
val cd = drawComposition {
fill = null
circle(width / 2.0, height / 2.0, 100.0)
fill = ColorRGBa.BLACK
clipMode = ClipMode.REVERSE_DIFFERENCE
circle(width / 2.0 + 50.0, height / 2.0, 100.0)
}
extend {
drawer.clear(ColorRGBa.PINK)
drawer.composition(cd)
}
}
}
}