Switch back to fun main()

This commit is contained in:
Edwin Jakobs
2021-08-30 17:18:54 +02:00
parent c5a95f8d17
commit 9a2f10f81d
187 changed files with 313 additions and 316 deletions

View File

@@ -8,7 +8,7 @@ import org.openrndr.extras.meshgenerators.sphereMesh
import org.openrndr.math.Vector3
import kotlin.math.cos
suspend fun main() {
fun main() {
application {
configure {
width = 800

View File

@@ -8,7 +8,7 @@ import org.openrndr.extras.meshgenerators.sphereMesh
import org.openrndr.math.Vector3
import kotlin.math.cos
suspend fun main() {
fun main() {
application {
configure {
width = 800

View File

@@ -10,7 +10,7 @@ import org.openrndr.math.Vector2
import org.openrndr.math.map
import org.openrndr.shape.Rectangle
suspend fun main() = application {
fun main() = application {
program {
// -- this block is for automation purposes only
if (System.getProperty("takeScreenshot") == "true") {

View File

@@ -9,7 +9,7 @@ import org.openrndr.extras.color.palettes.rangeTo
import org.openrndr.extras.color.presets.CORAL
import org.openrndr.extras.color.spaces.toHSLUVa
suspend fun main() = application {
fun main() = application {
program {
// -- this block is for automation purposes only
if (System.getProperty("takeScreenshot") == "true") {

View File

@@ -8,7 +8,7 @@ import org.openrndr.extras.color.spaces.toOKLABa
import org.openrndr.extras.color.spaces.toOKLCHa
import org.openrndr.extras.color.spaces.toXSLUVa
suspend fun main() {
fun main() {
application {
program {
// -- this block is for automation purposes only

View File

@@ -13,7 +13,7 @@ import org.openrndr.extras.color.spaces.toXSLUVa
import org.openrndr.extras.meshgenerators.sphereMesh
import org.openrndr.math.Vector3
suspend fun main() {
fun main() {
application {
configure {
width = 800

View File

@@ -11,7 +11,7 @@ import org.openrndr.extras.color.spaces.ColorHSLUVa
import org.openrndr.math.Vector2
import org.openrndr.shape.Rectangle
suspend fun main() {
fun main() {
application {
program {
// -- this block is for automation purposes only

View File

@@ -8,7 +8,7 @@ import org.openrndr.math.Polar
import org.openrndr.math.Vector2
import kotlin.math.sqrt
suspend fun main() {
fun main() {
application {
configure {
width = 720

View File

@@ -5,7 +5,7 @@ import org.openrndr.draw.loadImage
import org.openrndr.extensions.SingleScreenshot
import org.openrndr.extras.color.statistics.calculateHistogramRGB
suspend fun main() = application {
fun main() = application {
program {
// -- this block is for automation purposes only
if (System.getProperty("takeScreenshot") == "true") {

View File

@@ -6,7 +6,7 @@ import org.openrndr.extensions.SingleScreenshot
import org.openrndr.extras.color.statistics.calculateHistogramRGB
import kotlin.math.pow
suspend fun main() = application {
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.draw.loadImage
import org.openrndr.extensions.SingleScreenshot
import org.openrndr.extras.color.statistics.calculateHistogramRGB
suspend fun main() = application {
fun main() = application {
program {
// -- this block is for automation purposes only
if (System.getProperty("takeScreenshot") == "true") {

View File

@@ -8,7 +8,7 @@ import org.openrndr.extras.color.spaces.toHSLUVa
import org.openrndr.math.Polar
import org.openrndr.shape.contour
suspend fun main() {
fun main() {
class Arc(val start: Double, val radius: Double, val length: Double, val height: Double) {
fun split(offset: Double = 0.0): List<Arc> {
val hl = length / 2.0