Merge branch 'next-version' ignoring changes in master
Includes openrndr and orx 0.4.5
This commit is contained in:
5
.github/workflows/build-on-commit.yaml
vendored
5
.github/workflows/build-on-commit.yaml
vendored
@@ -3,13 +3,14 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
- next-version
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: '17'
|
java-version: '17'
|
||||||
|
|||||||
6
.github/workflows/publish-binaries.yaml
vendored
6
.github/workflows/publish-binaries.yaml
vendored
@@ -23,10 +23,10 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up JDK 17
|
- name: Set up JDK 17
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: '17'
|
java-version: '17'
|
||||||
@@ -48,7 +48,7 @@ jobs:
|
|||||||
run: mv ./build/distributions/openrndr-application.zip ./build/distributions/openrndr-application-${{env.OR_TARGET_NAME}}.zip
|
run: mv ./build/distributions/openrndr-application.zip ./build/distributions/openrndr-application-${{env.OR_TARGET_NAME}}.zip
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
uses: ncipollo/release-action@v1.12.0
|
uses: ncipollo/release-action@v1.14.0
|
||||||
id: create_release
|
id: create_release
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,6 +3,7 @@ build
|
|||||||
out
|
out
|
||||||
.idea
|
.idea
|
||||||
.gradle
|
.gradle
|
||||||
|
.kotlin
|
||||||
.lwjgl
|
.lwjgl
|
||||||
video/
|
video/
|
||||||
screenshots/
|
screenshots/
|
||||||
|
|||||||
39
README.md
39
README.md
@@ -7,13 +7,16 @@ go-to starting point for writing OPENRNDR-based software.
|
|||||||
|
|
||||||
If you are looking at this from IntelliJ IDEA you can start by expanding the _project_ tab on the left. You will find a template program in `src/main/kotlin/TemplateProgram.kt` and a live-coding example in `src/main/kotlin/TemplateLiveProgram.kt`.
|
If you are looking at this from IntelliJ IDEA you can start by expanding the _project_ tab on the left. You will find a template program in `src/main/kotlin/TemplateProgram.kt` and a live-coding example in `src/main/kotlin/TemplateLiveProgram.kt`.
|
||||||
|
|
||||||
You will find some [basic instructions](https://guide.openrndr.org/setUpYourFirstProgram.html) in the [OPENRNDR guide](https://guide.openrndr.org)
|
You will find some [basic instructions](https://guide.openrndr.org/setUpYourFirstProgram.html) in the [OPENRNDR guide](https://guide.openrndr.org).
|
||||||
|
|
||||||
## Gradle tasks
|
## Gradle tasks
|
||||||
|
|
||||||
- `./gradlew run` runs the TemplateProgram (Use `gradlew.bat run` under Windows)
|
- `./gradlew run` runs `TemplateProgram.kt` (Use `gradlew.bat run` under Windows)
|
||||||
|
- `./gradlew run -Popenrndr.application=MyProgramKt` runs `src/main/kotlin/myProgram.kt`
|
||||||
|
- `./gradlew run -Popenrndr.application=foo.bar.MyProgramKt` runs `src/main/kotlin/foo/bar/myProgram.kt` (assuming `package foo.bar` is used in myProgram.kt)
|
||||||
- `./gradlew shadowJar` creates an executable platform specific jar file with all dependencies. Run the resulting program by typing `java -jar build/libs/openrndr-template-1.0.0-all.jar` in a terminal from the project root. If your project contains multiple `main` methods, specify which one to run with `java -cp build/libs/openrndr-template-1.0.0-all.jar MyProgramKt`, where `MyProgramKt` can also be `foo.bar.MyProgramKt` if it's in the package `foo.bar`.
|
- `./gradlew shadowJar` creates an executable platform specific jar file with all dependencies. Run the resulting program by typing `java -jar build/libs/openrndr-template-1.0.0-all.jar` in a terminal from the project root. If your project contains multiple `main` methods, specify which one to run with `java -cp build/libs/openrndr-template-1.0.0-all.jar MyProgramKt`, where `MyProgramKt` can also be `foo.bar.MyProgramKt` if it's in the package `foo.bar`.
|
||||||
- `./gradlew jpackageZip` creates a zip with a stand-alone executable for the current platform (works with Java 14 only)
|
- `./gradlew jpackageZip` creates a zip with a stand-alone executable for the current platform (works with Java 14 only). Run it like this: `cd build/jpackage/openrndr-application/ && bin/openrndr-application`.
|
||||||
|
- `./gradlew dependencyUpydates` checks whether any dependencies have newer versions.
|
||||||
|
|
||||||
## Cross builds
|
## Cross builds
|
||||||
|
|
||||||
@@ -21,33 +24,27 @@ To create a runnable jar for a platform different from your current platform, us
|
|||||||
|
|
||||||
## Updating OPENRNDR, ORX and other dependencies
|
## Updating OPENRNDR, ORX and other dependencies
|
||||||
|
|
||||||
The openrndr-template depends on various packages including the core [openrndr](https://github.com/openrndr/openrndr/) and the [orx](https://github.com/openrndr/orx/) extensions. The version numbers of these dependencies are specified in your [libs.versions.toml](gradle/libs.versions.toml) file. Learn more about this file in the [Gradle documentation](https://docs.gradle.org/current/userguide/platforms.html#sub:conventional-dependencies-toml) website.
|
The openrndr-template depends on various packages including the core [openrndr](https://github.com/openrndr/openrndr/) and the [orx](https://github.com/openrndr/orx/) extensions and
|
||||||
|
provides the optional [orsl](https://github.com/openrndr/orsl/) shader helper modules.
|
||||||
|
The version numbers of these dependencies are specified in your [libs.versions.toml](gradle/libs.versions.toml) file.
|
||||||
|
Learn more about this file in the [Gradle documentation](https://docs.gradle.org/current/userguide/platforms.html#sub:conventional-dependencies-toml) website.
|
||||||
|
|
||||||
Newer versions of OPENRNDR and ORX bring useful features and bug fixes. The most recent versions are
|
Newer versions bring useful features and bug fixes. The most recent versions are<br>
|
||||||

|

|
||||||
.
|

|
||||||
|
.
|
||||||
|
|
||||||
Switch to the [next-version branch](https://github.com/openrndr/openrndr-template/tree/next-version) or enter these versions manually in your toml file. They can look like "0.4.3" or "0.4.3-alpha4". Use the complete string, as in:
|
Switch to the [next-version branch](https://github.com/openrndr/openrndr-template/tree/next-version) or enter these versions manually in your toml file.
|
||||||
|
They can look like "0.4.3" or "0.4.3-alpha4". Use the complete string, as in:
|
||||||
|
|
||||||
openrndr = "0.4.3-alpha4"
|
openrndr = "0.4.5-alpha5"
|
||||||
orx = "0.4.3-alpha4"
|
orx = "0.4.5-alpha5"
|
||||||
|
orsl = "0.4.5-alpha5"
|
||||||
|
|
||||||
You can add other dependencies needed by your project to your [build.gradle.kts](build.gradle.kts) file, inside the `dependencies { }` block.
|
You can add other dependencies needed by your project to your [build.gradle.kts](build.gradle.kts) file, inside the `dependencies { }` block.
|
||||||
|
|
||||||
⚠️ Remember to reload the Gradle configuration after changing any dependencies.
|
⚠️ Remember to reload the Gradle configuration after changing any dependencies.
|
||||||
|
|
||||||
## Run other Kotlin programs from the command line
|
|
||||||
|
|
||||||
By default `./gradlew run` runs a program called `TemplateProgram.kt` but a different one can be provided as an argument:
|
|
||||||
|
|
||||||
To run `src/main/kotlin/myProgram.kt`
|
|
||||||
|
|
||||||
./gradlew run -Popenrndr.application=MyProgramKt
|
|
||||||
|
|
||||||
To run `src/main/kotlin/foo/bar/myProgram.kt` (assuming `package foo.bar` in myProgram.kt)
|
|
||||||
|
|
||||||
./gradlew run -Popenrndr.application=foo.bar.MyProgramKt
|
|
||||||
|
|
||||||
## Github Actions
|
## Github Actions
|
||||||
|
|
||||||
This repository contains various Github Actions under `./github/workflows`:
|
This repository contains various Github Actions under `./github/workflows`:
|
||||||
|
|||||||
107
build.gradle.kts
107
build.gradle.kts
@@ -1,7 +1,8 @@
|
|||||||
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
||||||
import org.gradle.internal.os.OperatingSystem
|
import org.gradle.internal.os.OperatingSystem
|
||||||
import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform
|
import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform
|
||||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||||
|
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
|
||||||
|
|
||||||
group = "org.openrndr.template"
|
group = "org.openrndr.template"
|
||||||
version = "1.0.0"
|
version = "1.0.0"
|
||||||
@@ -10,10 +11,12 @@ val applicationMainClass = "TemplateProgramKt"
|
|||||||
|
|
||||||
/** ## additional ORX features to be added to this project */
|
/** ## additional ORX features to be added to this project */
|
||||||
val orxFeatures = setOf<String>(
|
val orxFeatures = setOf<String>(
|
||||||
|
// "orx-axidraw",
|
||||||
// "orx-boofcv",
|
// "orx-boofcv",
|
||||||
"orx-camera",
|
"orx-camera",
|
||||||
// "orx-chataigne",
|
// "orx-chataigne",
|
||||||
"orx-color",
|
"orx-color",
|
||||||
|
// "orx-composition",
|
||||||
"orx-compositor",
|
"orx-compositor",
|
||||||
// "orx-compute-graph",
|
// "orx-compute-graph",
|
||||||
// "orx-compute-graph-nodes",
|
// "orx-compute-graph-nodes",
|
||||||
@@ -22,6 +25,8 @@ val orxFeatures = setOf<String>(
|
|||||||
// "orx-easing",
|
// "orx-easing",
|
||||||
"orx-envelopes",
|
"orx-envelopes",
|
||||||
// "orx-expression-evaluator",
|
// "orx-expression-evaluator",
|
||||||
|
// "orx-fcurve",
|
||||||
|
// "orx-fft",
|
||||||
// "orx-file-watcher",
|
// "orx-file-watcher",
|
||||||
"orx-fx",
|
"orx-fx",
|
||||||
// "orx-git-archiver",
|
// "orx-git-archiver",
|
||||||
@@ -37,6 +42,7 @@ val orxFeatures = setOf<String>(
|
|||||||
// "orx-kinect-v1",
|
// "orx-kinect-v1",
|
||||||
// "orx-kotlin-parser",
|
// "orx-kotlin-parser",
|
||||||
// "orx-marching-squares",
|
// "orx-marching-squares",
|
||||||
|
// "orx-math",
|
||||||
// "orx-mesh-generators",
|
// "orx-mesh-generators",
|
||||||
// "orx-midi",
|
// "orx-midi",
|
||||||
// "orx-minim",
|
// "orx-minim",
|
||||||
@@ -57,9 +63,11 @@ val orxFeatures = setOf<String>(
|
|||||||
"orx-shade-styles",
|
"orx-shade-styles",
|
||||||
// "orx-shader-phrases",
|
// "orx-shader-phrases",
|
||||||
"orx-shapes",
|
"orx-shapes",
|
||||||
|
// "orx-svg",
|
||||||
// "orx-syphon",
|
// "orx-syphon",
|
||||||
// "orx-temporal-blur",
|
// "orx-temporal-blur",
|
||||||
// "orx-tensorflow",
|
// "orx-tensorflow",
|
||||||
|
// "orx-text-writer",
|
||||||
// "orx-time-operators",
|
// "orx-time-operators",
|
||||||
// "orx-timer",
|
// "orx-timer",
|
||||||
// "orx-triangulation",
|
// "orx-triangulation",
|
||||||
@@ -101,6 +109,7 @@ plugins {
|
|||||||
alias(libs.plugins.runtime)
|
alias(libs.plugins.runtime)
|
||||||
alias(libs.plugins.gitarchive.tomarkdown).apply(false)
|
alias(libs.plugins.gitarchive.tomarkdown).apply(false)
|
||||||
alias(libs.plugins.versions)
|
alias(libs.plugins.versions)
|
||||||
|
alias(libs.plugins.kotlin.serialization)
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
@@ -111,20 +120,28 @@ repositories {
|
|||||||
dependencies {
|
dependencies {
|
||||||
|
|
||||||
// implementation(libs.jsoup)
|
// implementation(libs.jsoup)
|
||||||
// implementation(libs.gson)
|
|
||||||
// implementation(libs.csv)
|
// implementation(libs.csv)
|
||||||
|
|
||||||
|
/* ORSL dependencies */
|
||||||
|
|
||||||
|
// implementation(libs.orsl.shader.generator)
|
||||||
|
// implementation(libs.orsl.extension.color)
|
||||||
|
// implementation(libs.orsl.extension.easing)
|
||||||
|
// implementation(libs.orsl.extension.gradient)
|
||||||
|
// implementation(libs.orsl.extension.noise)
|
||||||
|
// implementation(libs.orsl.extension.pbr)
|
||||||
|
// implementation(libs.orsl.extension.raymarching)
|
||||||
|
// implementation(libs.orsl.extension.sdf)
|
||||||
|
|
||||||
implementation(libs.kotlinx.coroutines.core)
|
implementation(libs.kotlinx.coroutines.core)
|
||||||
|
implementation(libs.kotlinx.serialization.core)
|
||||||
|
implementation(libs.kotlinx.serialization.json)
|
||||||
implementation(libs.slf4j.api)
|
implementation(libs.slf4j.api)
|
||||||
implementation(libs.kotlin.logging)
|
implementation(libs.kotlin.logging)
|
||||||
|
|
||||||
when (applicationLogging) {
|
when (applicationLogging) {
|
||||||
Logging.NONE -> {
|
Logging.NONE -> runtimeOnly(libs.slf4j.nop)
|
||||||
runtimeOnly(libs.slf4j.nop)
|
Logging.SIMPLE -> runtimeOnly(libs.slf4j.simple)
|
||||||
}
|
|
||||||
Logging.SIMPLE -> {
|
|
||||||
runtimeOnly(libs.slf4j.simple)
|
|
||||||
}
|
|
||||||
Logging.FULL -> {
|
Logging.FULL -> {
|
||||||
runtimeOnly(libs.log4j.slf4j2)
|
runtimeOnly(libs.log4j.slf4j2)
|
||||||
runtimeOnly(libs.log4j.core)
|
runtimeOnly(libs.log4j.core)
|
||||||
@@ -139,21 +156,24 @@ dependencies {
|
|||||||
// ------------------------------------------------------------------------------------------------------------------ //
|
// ------------------------------------------------------------------------------------------------------------------ //
|
||||||
|
|
||||||
java {
|
java {
|
||||||
sourceCompatibility = JavaVersion.VERSION_11
|
sourceCompatibility = JavaVersion.VERSION_17
|
||||||
targetCompatibility = JavaVersion.VERSION_11
|
targetCompatibility = JavaVersion.VERSION_17
|
||||||
}
|
}
|
||||||
tasks.withType<KotlinCompile> {
|
kotlin {
|
||||||
kotlinOptions.jvmTarget = "11"
|
compilerOptions {
|
||||||
|
languageVersion = KotlinVersion.KOTLIN_2_0
|
||||||
|
apiVersion = KotlinVersion.KOTLIN_2_0
|
||||||
|
jvmTarget = JvmTarget.JVM_17
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------------------------ //
|
// ------------------------------------------------------------------------------------------------------------------ //
|
||||||
|
|
||||||
project.setProperty("mainClassName", applicationMainClass)
|
|
||||||
|
|
||||||
application {
|
application {
|
||||||
if (hasProperty("openrndr.application")) {
|
mainClass = if (hasProperty("openrndr.application"))
|
||||||
mainClass.set("${property("openrndr.application")}")
|
"${property("openrndr.application")}"
|
||||||
}
|
else
|
||||||
|
applicationMainClass
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
@@ -172,34 +192,33 @@ tasks {
|
|||||||
exclude(dependency("org.bytedeco:.*"))
|
exclude(dependency("org.bytedeco:.*"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------------------------------------------------------ //
|
||||||
|
|
||||||
|
tasks {
|
||||||
named<org.beryx.runtime.JPackageTask>("jpackage") {
|
named<org.beryx.runtime.JPackageTask>("jpackage") {
|
||||||
doLast {
|
doLast {
|
||||||
val destPath = if(OperatingSystem.current().isMacOsX)
|
val destPath = if (OperatingSystem.current().isMacOsX)
|
||||||
"build/jpackage/openrndr-application.app/Contents/Resources/data"
|
"build/jpackage/openrndr-application.app/Contents/Resources/data"
|
||||||
else
|
else
|
||||||
"build/jpackage/openrndr-application/data"
|
"build/jpackage/openrndr-application/data"
|
||||||
|
|
||||||
copy {
|
copy {
|
||||||
from("data") {
|
from("data") { include("**/*") }
|
||||||
include("**/*")
|
|
||||||
}
|
|
||||||
into(destPath)
|
into(destPath)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------------------------ //
|
register<Zip>("jpackageZip") {
|
||||||
|
archiveFileName = "openrndr-application.zip"
|
||||||
tasks.register<Zip>("jpackageZip") {
|
from("${layout.buildDirectory.get()}/jpackage") {
|
||||||
archiveFileName.set("openrndr-application.zip")
|
include("**/*")
|
||||||
from("${layout.buildDirectory.get()}/jpackage") {
|
}
|
||||||
include("**/*")
|
dependsOn("jpackage")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
tasks.findByName("jpackageZip")?.dependsOn("jpackage")
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------------------------ //
|
|
||||||
|
|
||||||
runtime {
|
runtime {
|
||||||
jpackage {
|
jpackage {
|
||||||
@@ -210,14 +229,16 @@ runtime {
|
|||||||
jvmArgs.add("-Duser.dir=${"$"}APPDIR/../Resources")
|
jvmArgs.add("-Duser.dir=${"$"}APPDIR/../Resources")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
options.set(listOf("--strip-debug", "--compress", "1", "--no-header-files", "--no-man-pages"))
|
options = listOf("--strip-debug", "--compress", "1", "--no-header-files", "--no-man-pages")
|
||||||
modules.set(listOf("jdk.unsupported", "java.management", "java.desktop"))
|
modules = listOf("jdk.unsupported", "java.management", "java.desktop")
|
||||||
}
|
}
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------------------------ //
|
// ------------------------------------------------------------------------------------------------------------------ //
|
||||||
|
|
||||||
tasks.register<org.openrndr.extra.gitarchiver.GitArchiveToMarkdown>("gitArchiveToMarkDown") {
|
tasks {
|
||||||
historySize.set(20)
|
register<org.openrndr.extra.gitarchiver.GitArchiveToMarkdown>("gitArchiveToMarkDown") {
|
||||||
|
historySize = 20
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------------------------ //
|
// ------------------------------------------------------------------------------------------------------------------ //
|
||||||
@@ -228,9 +249,7 @@ tasks {
|
|||||||
|
|
||||||
val nonStableKeywords = listOf("alpha", "beta", "rc")
|
val nonStableKeywords = listOf("alpha", "beta", "rc")
|
||||||
|
|
||||||
fun isNonStable(
|
fun isNonStable(version: String) = nonStableKeywords.any {
|
||||||
version: String
|
|
||||||
) = nonStableKeywords.any {
|
|
||||||
version.lowercase().contains(it)
|
version.lowercase().contains(it)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -266,11 +285,13 @@ class Openrndr {
|
|||||||
"aarch64", "arm-v8" -> "macos-arm64"
|
"aarch64", "arm-v8" -> "macos-arm64"
|
||||||
else -> "macos"
|
else -> "macos"
|
||||||
}
|
}
|
||||||
|
|
||||||
currOs.isLinux -> when (currArch) {
|
currOs.isLinux -> when (currArch) {
|
||||||
"x86-64" -> "linux-x64"
|
"x86-64" -> "linux-x64"
|
||||||
"aarch64" -> "linux-arm64"
|
"aarch64" -> "linux-arm64"
|
||||||
else -> throw IllegalArgumentException("architecture not supported: $currArch")
|
else -> throw IllegalArgumentException("architecture not supported: $currArch")
|
||||||
}
|
}
|
||||||
|
|
||||||
else -> throw IllegalArgumentException("os not supported: ${currOs.name}")
|
else -> throw IllegalArgumentException("os not supported: ${currOs.name}")
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -287,7 +308,6 @@ class Openrndr {
|
|||||||
implementation(openrndr("openal"))
|
implementation(openrndr("openal"))
|
||||||
runtimeOnly(openrndrNatives("openal"))
|
runtimeOnly(openrndrNatives("openal"))
|
||||||
implementation(openrndr("application"))
|
implementation(openrndr("application"))
|
||||||
implementation(openrndr("svg"))
|
|
||||||
implementation(openrndr("animatable"))
|
implementation(openrndr("animatable"))
|
||||||
implementation(openrndr("extensions"))
|
implementation(openrndr("extensions"))
|
||||||
implementation(openrndr("filter"))
|
implementation(openrndr("filter"))
|
||||||
@@ -308,25 +328,26 @@ class Openrndr {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val openrndr = Openrndr()
|
val openrndr = Openrndr()
|
||||||
|
|
||||||
if (properties["openrndr.tasks"] == "true") {
|
if (properties["openrndr.tasks"] == "true") {
|
||||||
task("create executable jar for $applicationMainClass") {
|
tasks.register("create executable jar for $applicationMainClass") {
|
||||||
group = " \uD83E\uDD8C OPENRNDR"
|
group = " \uD83E\uDD8C OPENRNDR"
|
||||||
dependsOn("shadowJar")
|
dependsOn("shadowJar")
|
||||||
}
|
}
|
||||||
|
|
||||||
task("run $applicationMainClass") {
|
tasks.register("run $applicationMainClass") {
|
||||||
group = " \uD83E\uDD8C OPENRNDR"
|
group = " \uD83E\uDD8C OPENRNDR"
|
||||||
dependsOn("run")
|
dependsOn("run")
|
||||||
}
|
}
|
||||||
|
|
||||||
task("create standalone executable for $applicationMainClass") {
|
tasks.register("create standalone executable for $applicationMainClass") {
|
||||||
group = " \uD83E\uDD8C OPENRNDR"
|
group = " \uD83E\uDD8C OPENRNDR"
|
||||||
dependsOn("jpackageZip")
|
dependsOn("jpackageZip")
|
||||||
}
|
}
|
||||||
|
|
||||||
task("add IDE file scopes") {
|
tasks.register("add IDE file scopes") {
|
||||||
group = " \uD83E\uDD8C OPENRNDR"
|
group = " \uD83E\uDD8C OPENRNDR"
|
||||||
val scopesFolder = File("${project.projectDir}/.idea/scopes")
|
val scopesFolder = File("${project.projectDir}/.idea/scopes")
|
||||||
scopesFolder.mkdirs()
|
scopesFolder.mkdirs()
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
openrndr.tasks=true
|
openrndr.tasks=true
|
||||||
kotlin.code.style=official
|
kotlin.code.style=official
|
||||||
#org.gradle.configuration-cache=true
|
#org.gradle.configuration-cache=true
|
||||||
#org.gradle.configuration-cache.problems=warn
|
#org.gradle.configuration-cache.parallel=true
|
||||||
|
#org.gradle.configuration-cache.problems=warn
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,21 @@
|
|||||||
[versions]
|
[versions]
|
||||||
kotlin = "1.9.22"
|
kotlin = "2.2.10"
|
||||||
openrndr = "0.4.4"
|
openrndr = "0.4.5"
|
||||||
orx = "0.4.4"
|
orx = "0.4.5"
|
||||||
|
orsl = "0.4.5-alpha5"
|
||||||
orml = "0.4.1"
|
orml = "0.4.1"
|
||||||
|
slf4j = "2.0.17"
|
||||||
slf4j = "2.0.10"
|
log4j = "2.23.1"
|
||||||
log4j = "2.22.1"
|
jackson = "2.17.2"
|
||||||
jackson = "2.16.1"
|
junit = "4.13.2"
|
||||||
|
kotlinxCoroutines = "1.10.2"
|
||||||
|
kotlinxSerialization = "1.9.0"
|
||||||
|
kotlinLogging = "7.0.13"
|
||||||
|
kotlinCsvJvm = "1.9.3"
|
||||||
|
jsoup = "1.17.1"
|
||||||
|
shadow = "9.1.0"
|
||||||
|
runtime = "1.13.1"
|
||||||
|
versions = "0.52.0"
|
||||||
|
|
||||||
[libraries]
|
[libraries]
|
||||||
kotlin-script-runtime = { group = "org.jetbrains.kotlin", name = "kotlin-script-runtime", version.ref = "kotlin" }
|
kotlin-script-runtime = { group = "org.jetbrains.kotlin", name = "kotlin-script-runtime", version.ref = "kotlin" }
|
||||||
@@ -19,17 +28,27 @@ log4j-core = { group = "org.apache.logging.log4j", name = "log4j-core", version.
|
|||||||
jackson-databind = { group = "com.fasterxml.jackson.core", name = "jackson-databind", version.ref = "jackson" }
|
jackson-databind = { group = "com.fasterxml.jackson.core", name = "jackson-databind", version.ref = "jackson" }
|
||||||
jackson-json = { group = "com.fasterxml.jackson.dataformat", name = "jackson-dataformat-yaml", version.ref = "jackson" }
|
jackson-json = { group = "com.fasterxml.jackson.dataformat", name = "jackson-dataformat-yaml", version.ref = "jackson" }
|
||||||
|
|
||||||
kotlinx-coroutines-core = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-core", version = "1.7.3" }
|
orsl-shader-generator = { group = "org.openrndr.extra", name = "orsl-shader-generator", version.ref = "orsl" }
|
||||||
kotlin-logging = { group = "io.github.microutils", name = "kotlin-logging", version = "3.0.5" }
|
orsl-extension-color = { group = "org.openrndr.extra", name = "orsl-extension-color", version.ref = "orsl" }
|
||||||
junit = { group = "junit", name = "junit", version = "4.13.2" }
|
orsl-extension-easing = { group = "org.openrndr.extra", name = "orsl-extension-easing", version.ref = "orsl" }
|
||||||
jsoup = { group = "org.jsoup", name = "jsoup", version = "1.17.1" }
|
orsl-extension-gradient = { group = "org.openrndr.extra", name = "orsl-extension-gradient", version.ref = "orsl" }
|
||||||
gson = { group = "com.google.code.gson", name = "gson", version = "2.10.1" }
|
orsl-extension-noise = { group = "org.openrndr.extra", name = "orsl-extension-noise", version.ref = "orsl" }
|
||||||
csv = { group = "com.github.doyaaaaaken", name = "kotlin-csv-jvm", version = "1.9.2" }
|
orsl-extension-pbr = { group = "org.openrndr.extra", name = "orsl-extension-pbr", version.ref = "orsl" }
|
||||||
|
orsl-extension-raymarching = { group = "org.openrndr.extra", name = "orsl-extension-raymarching", version.ref = "orsl" }
|
||||||
|
orsl-extension-sdf = { group = "org.openrndr.extra", name = "orsl-extension-sdf", version.ref = "orsl" }
|
||||||
|
|
||||||
|
kotlinx-coroutines-core = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-core", version.ref = "kotlinxCoroutines" }
|
||||||
|
kotlinx-serialization-json = { group = "org.jetbrains.kotlinx", name = "kotlinx-serialization-json", version.ref = "kotlinxSerialization" }
|
||||||
|
kotlinx-serialization-core = { group = "org.jetbrains.kotlinx", name = "kotlinx-serialization-core", version.ref = "kotlinxSerialization" }
|
||||||
|
kotlin-logging = { group = "io.github.oshai", name = "kotlin-logging", version.ref = "kotlinLogging" }
|
||||||
|
junit = { group = "junit", name = "junit", version.ref = "junit" }
|
||||||
|
jsoup = { group = "org.jsoup", name = "jsoup", version.ref = "jsoup" }
|
||||||
|
csv = { group = "com.github.doyaaaaaken", name = "kotlin-csv-jvm", version.ref = "kotlinCsvJvm" }
|
||||||
|
|
||||||
[plugins]
|
[plugins]
|
||||||
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
|
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
|
||||||
shadow = { id = "com.github.johnrengelman.shadow", version = "8.1.1" }
|
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
|
||||||
runtime = { id = "org.beryx.runtime", version = "1.13.0" }
|
shadow = { id = "com.gradleup.shadow", version.ref = "shadow" }
|
||||||
|
runtime = { id = "org.beryx.runtime", version.ref = "runtime" }
|
||||||
gitarchive-tomarkdown = { id = "org.openrndr.extra.gitarchiver.tomarkdown", version.ref = "orx" }
|
gitarchive-tomarkdown = { id = "org.openrndr.extra.gitarchiver.tomarkdown", version.ref = "orx" }
|
||||||
versions = { id = "com.github.ben-manes.versions", version = "0.50.0" }
|
versions = { id = "com.github.ben-manes.versions", version.ref = "versions" }
|
||||||
|
|
||||||
|
|||||||
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Binary file not shown.
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@@ -1,6 +1,6 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
|
||||||
networkTimeout=10000
|
networkTimeout=10000
|
||||||
validateDistributionUrl=true
|
validateDistributionUrl=true
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
|||||||
9
gradlew
vendored
9
gradlew
vendored
@@ -86,8 +86,7 @@ done
|
|||||||
# shellcheck disable=SC2034
|
# shellcheck disable=SC2034
|
||||||
APP_BASE_NAME=${0##*/}
|
APP_BASE_NAME=${0##*/}
|
||||||
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
||||||
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
|
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
|
||||||
' "$PWD" ) || exit
|
|
||||||
|
|
||||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||||
MAX_FD=maximum
|
MAX_FD=maximum
|
||||||
@@ -115,7 +114,7 @@ case "$( uname )" in #(
|
|||||||
NONSTOP* ) nonstop=true ;;
|
NONSTOP* ) nonstop=true ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
CLASSPATH="\\\"\\\""
|
||||||
|
|
||||||
|
|
||||||
# Determine the Java command to use to start the JVM.
|
# Determine the Java command to use to start the JVM.
|
||||||
@@ -206,7 +205,7 @@ fi
|
|||||||
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||||
|
|
||||||
# Collect all arguments for the java command:
|
# Collect all arguments for the java command:
|
||||||
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
|
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
|
||||||
# and any embedded shellness will be escaped.
|
# and any embedded shellness will be escaped.
|
||||||
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
|
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
|
||||||
# treated as '${Hostname}' itself on the command line.
|
# treated as '${Hostname}' itself on the command line.
|
||||||
@@ -214,7 +213,7 @@ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
|||||||
set -- \
|
set -- \
|
||||||
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
||||||
-classpath "$CLASSPATH" \
|
-classpath "$CLASSPATH" \
|
||||||
org.gradle.wrapper.GradleWrapperMain \
|
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
|
||||||
"$@"
|
"$@"
|
||||||
|
|
||||||
# Stop when "xargs" is not available.
|
# Stop when "xargs" is not available.
|
||||||
|
|||||||
4
gradlew.bat
vendored
4
gradlew.bat
vendored
@@ -70,11 +70,11 @@ goto fail
|
|||||||
:execute
|
:execute
|
||||||
@rem Setup the command line
|
@rem Setup the command line
|
||||||
|
|
||||||
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
set CLASSPATH=
|
||||||
|
|
||||||
|
|
||||||
@rem Execute Gradle
|
@rem Execute Gradle
|
||||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
|
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
|
||||||
|
|
||||||
:end
|
:end
|
||||||
@rem End local scope for the variables with windows NT shell
|
@rem End local scope for the variables with windows NT shell
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import org.openrndr.application
|
|||||||
import org.openrndr.color.ColorRGBa
|
import org.openrndr.color.ColorRGBa
|
||||||
import org.openrndr.draw.loadFont
|
import org.openrndr.draw.loadFont
|
||||||
import org.openrndr.draw.loadImage
|
import org.openrndr.draw.loadImage
|
||||||
import org.openrndr.draw.tint
|
import org.openrndr.extra.color.colormatrix.tint
|
||||||
import kotlin.math.cos
|
import kotlin.math.cos
|
||||||
import kotlin.math.sin
|
import kotlin.math.sin
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user