Upgrade to OPENRNDR 0.4 snapshot

This commit is contained in:
Edwin Jakobs
2021-06-22 11:08:07 +02:00
parent 579ddf9bb5
commit 9435907ef9
339 changed files with 460 additions and 497 deletions

View File

@@ -11,7 +11,7 @@ sourceSets {
dependencies {
implementation(project(":orx-color"))
implementation(project(":orx-shader-phrases"))
demoImplementation("org.openrndr:openrndr-core:$openrndrVersion")
demoImplementation("org.openrndr:openrndr-application:$openrndrVersion")
demoImplementation("org.openrndr:openrndr-extensions:$openrndrVersion")
demoRuntimeOnly("org.openrndr:openrndr-gl3:$openrndrVersion")
demoRuntimeOnly("org.openrndr:openrndr-gl3-natives-$openrndrOS:$openrndrVersion")

View File

@@ -14,7 +14,7 @@ import org.openrndr.shape.ShapeContour
* The created contours are horizontal and vertical in "bezier-patch space" but
* are rendered deformed following the shape of the bezier patch.
*/
fun main() {
suspend fun main() {
application {
configure {
width = 800

View File

@@ -14,7 +14,7 @@ import org.openrndr.shape.ShapeContour
* but one can manually create any other 4-segment closed contour
* to use in bezier patches.
*/
fun main() {
suspend fun main() {
application {
configure {
width = 800

View File

@@ -14,7 +14,7 @@ import org.openrndr.shape.ShapeContour
* In this case the contours are regular stars and the bezier patch
* is created using a circular contour with the required 4 segments.
*/
fun main() {
suspend fun main() {
application {
configure {
width = 800

View File

@@ -11,7 +11,7 @@ import org.openrndr.shape.Circle
* You can think of bezierPatch.position() as requesting points
* in a wavy flag (the bezier patch) using normalized uv coordinates.
*/
fun main() {
suspend fun main() {
application {
configure {
width = 800

View File

@@ -5,7 +5,7 @@ import org.openrndr.extra.shapes.bezierPatch
import org.openrndr.extra.shapes.drawers.bezierPatch
import org.openrndr.shape.Circle
fun main() {
suspend fun main() {
application {
program {
if (System.getProperty("takeScreenshot") == "true") {

View File

@@ -7,7 +7,7 @@ import org.openrndr.extra.shapes.drawers.bezierPatch
import org.openrndr.extras.color.spaces.toOKLABa
import org.openrndr.shape.Circle
fun main() {
suspend fun main() {
application {
configure {
width = 720

View File

@@ -15,7 +15,7 @@ import org.openrndr.shape.Circle
import org.openrndr.shape.Rectangle
import kotlin.math.min
fun main() {
suspend fun main() {
application {
configure {
width = 720

View File

@@ -3,7 +3,7 @@ import org.openrndr.color.ColorRGBa
import org.openrndr.extensions.SingleScreenshot
import org.openrndr.extra.shapes.grid
fun main() {
suspend fun main() {
application {
configure {
width = 800

View File

@@ -6,7 +6,7 @@ import org.openrndr.extra.shapes.regularPolygon
import org.openrndr.math.map
import kotlin.math.cos
fun main() = application {
suspend fun main() = application {
program {
// -- this block is for automation purposes only
if (System.getProperty("takeScreenshot") == "true") {

View File

@@ -5,7 +5,7 @@ import org.openrndr.extra.shapes.regularStar
import kotlin.math.cos
import kotlin.math.sin
fun main() = application {
suspend fun main() = application {
program {
// -- this block is for automation purposes only
if (System.getProperty("takeScreenshot") == "true") {

View File

@@ -3,10 +3,11 @@ import org.openrndr.color.ColorRGBa
import org.openrndr.extensions.SingleScreenshot
import org.openrndr.extra.shapes.regularStar
import org.openrndr.math.Vector2
import org.openrndr.shape.contains
import kotlin.math.cos
import kotlin.math.sin
fun main() = application {
suspend fun main() = application {
program {
// -- this block is for automation purposes only
if (System.getProperty("takeScreenshot") == "true") {

View File

@@ -4,7 +4,7 @@ import org.openrndr.extensions.SingleScreenshot
import org.openrndr.extra.shapes.RoundedRectangle
import kotlin.math.cos
fun main() = application {
suspend fun main() = application {
program {
// -- this block is for automation purposes only
if (System.getProperty("takeScreenshot") == "true") {