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

@@ -10,7 +10,7 @@ import org.openrndr.shape.Rectangle
* Example of 5 gradient styles.
* NPointLinear and NPoingGradient have separate demos.
*/
suspend fun main() {
fun main() {
application {
configure {
width = 1000

View File

@@ -7,7 +7,7 @@ import org.openrndr.extra.shadestyles.radialGradient
import org.openrndr.extras.color.spaces.toOKLABa
import kotlin.math.cos
suspend fun main() {
fun main() {
application {
program {
if (System.getProperty("takeScreenshot") == "true") {

View File

@@ -17,7 +17,7 @@ import kotlin.math.cos
* on a static shape (a circle for example) or you can animate a shape
* with a static gradient.
*/
suspend fun main() {
fun main() {
application {
program {
if (System.getProperty("takeScreenshot") == "true") {

View File

@@ -15,7 +15,7 @@ import kotlin.math.sin
* uniformly between 0.0 and 1.0 and then animated towards one of
* the ends over time using pow() and sin(seconds).
*/
suspend fun main() {
fun main() {
application {
program {
if (System.getProperty("takeScreenshot") == "true") {

View File

@@ -12,7 +12,7 @@ import kotlin.random.Random
* Any of the properties can be animated, including colors and points.
* See DemoNPointLinearGradient01.kt for an example of animated properties.
*/
suspend fun main() {
fun main() {
application {
program {
if (System.getProperty("takeScreenshot") == "true") {

View File

@@ -5,7 +5,7 @@ import org.openrndr.extensions.SingleScreenshot
import org.openrndr.extra.shadestyles.radialGradient
import kotlin.math.cos
suspend fun main() {
fun main() {
application {
program {
if (System.getProperty("takeScreenshot") == "true") {