Switch back to fun main()
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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") {
|
||||
|
||||
@@ -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") {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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") {
|
||||
|
||||
@@ -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") {
|
||||
|
||||
@@ -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") {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user