Compare commits

...

49 Commits

Author SHA1 Message Date
Edwin Jakobs
248c1eb617 Upgrade to OPENRNDR 0.3.46 2021-03-12 08:58:28 +01:00
Abe Pazos
495078a419 Add missing orx to build.gradle.kts, null as trailing comma (#16) 2021-02-24 20:08:51 +01:00
Abe Pazos
03d5b07009 Update gradle to 6.8 (#15) 2021-01-22 21:21:01 +01:00
Edwin Jakobs
3e932ac945 Merge pull request #14 from ricardomatias/patch-4
Add orml setup
2021-01-21 21:06:59 +01:00
Ricardo Matias
b6e2377384 Add orml setup 2021-01-21 12:53:18 +01:00
Edwin Jakobs
39cacd7f70 Upgrade to OPENRNDR 0.3.44 2020-10-16 12:01:30 +02:00
Edwin Jakobs
175dac1bf4 Merge pull request #13 from ricardomatias/master
Add cheeta image for easy guide example usage
2020-07-20 10:42:54 +02:00
Ricardo Matias
f4335c152e Add cheeta image for easy guide example usage 2020-07-20 10:18:55 +02:00
Edwin Jakobs
7070dd95b8 Merge pull request #12 from gauthams-kumar/patch-1
Added missing commas
2020-07-14 23:31:03 +02:00
gauthams-kumar
3bef89761c Added missing commas
At end of lines 18, 41
2020-07-14 21:46:53 +01:00
Edwin Jakobs
12c65fc9d6 Merge pull request #11 from hamoid/defaultFont
Add default font and license
2020-07-13 11:31:19 +02:00
Edwin Jakobs
28a1f4862e Merge pull request #10 from ricardomatias/patch-2
Fix typo
2020-07-13 11:31:00 +02:00
Abe Pazos
797d2a75ca Add default font and license 2020-07-13 11:15:56 +02:00
Ricardo Matias
41fe1d31da Fix typo 2020-07-13 10:51:52 +02:00
Edwin Jakobs
b7dbf58574 Bump to latest OPENRNDR release 2020-07-06 19:18:53 +02:00
Edwin Jakobs
55eff802c5 Prepare for OPENRNDR 0.3.43 2020-07-06 15:07:34 +02:00
Edwin Jakobs
88782c614f Fix runtime configuration to produce working macOS binaries 2020-06-15 12:18:35 +02:00
Edwin Jakobs
a90e036620 Merge pull request #9 from hamoid/removeRedundantBoofcv
Remove redundant boofcv dependency
2020-06-10 20:53:07 +02:00
Abe Pazos
6964febf08 Remove redundant boofcv dependency 2020-06-09 15:04:34 +02:00
Edwin Jakobs
4f2bea7d94 Merge pull request #7 from hamoid/upstreamMaster
Add boofcv to build.gradle.kts
2020-05-20 08:54:33 +02:00
Abe Pazos
a483ecfd64 Add boofcv to build.gradle.kts 2020-05-19 09:58:10 +02:00
Edwin Jakobs
c9bbe84471 Merge pull request #6 from ricardomatias/patch-1
Add orx-time-operators
2020-05-18 16:57:09 +02:00
Ricardo Matias
ae0ef47a44 Add orx-time-operators 2020-05-17 20:49:28 +02:00
Edwin Jakobs
f391fed255 Add jpackageZip and Github actions for publishing binaries 2020-05-17 11:00:48 +02:00
Edwin Jakobs
896a8629fa Upgrade OPENRNDR/ORX 2020-05-15 18:15:31 +02:00
Edwin Jakobs
53dec983b1 Upgrade OPENRNDR/ORX, kotlin-coroutines core 1.3.6 2020-05-11 09:08:17 +02:00
Edwin Jakobs
0296f5036f Upgrade to Gradle 6.4 2020-05-06 23:26:31 +02:00
Edwin Jakobs
5151b7af89 Upgrade OPENRNDR, change TemplateLiveProgram.kt 2020-05-06 19:13:30 +02:00
Edwin Jakobs
38254b084d Fix issue with IntelliJ and not having the script runtime on the classpath 2020-04-29 14:48:21 +02:00
Edwin Jakobs
5c0b2b2c3f Upgrade to OPENRNDR 0.3.42-rc.2, ORX 0.3.51-rc.3, Kotlin 1.3.72 2020-04-29 12:13:33 +02:00
Edwin Jakobs
e86cf3f7e6 Upgrade to OPENRNDR 0.3.40, ORX 0.3.50 2020-03-27 22:21:57 +01:00
Edwin Jakobs
3374024592 Merge pull request #4 from reinvdwoerd/patch-3
Added orx-shapes
2020-03-09 14:55:29 +01:00
Rein van der Woerd
14bb87c02e Update build.gradle.kts 2020-03-09 13:18:31 +01:00
Edwin Jakobs
6c0d0ed16b Merge pull request #3 from reinvdwoerd/patch-2
Added missing orx features...
2020-03-04 13:54:40 +01:00
Rein van der Woerd
eab750d7f7 Added missing orx features... 2020-03-04 13:22:19 +01:00
Edwin Jakobs
63bbdb1218 Merge pull request #2 from reinvdwoerd/patch-1
orx-noclear has been renamed to orx-no-clear
2020-03-02 18:14:58 +01:00
Rein van der Woerd
59349d83f2 orx-noclear has been renamed to orx-no-clear 2020-03-02 08:29:03 +01:00
Edwin Jakobs
998a5051c1 Update build.gradle.kts 2020-03-01 15:21:13 +01:00
Edwin Jakobs
97c55825e2 Upgrade to OPENRNDR 0.3.39 2020-02-14 15:48:06 +01:00
Edwin Jakobs
15c188aee0 Fix for aarch64 architecture 2020-01-29 14:07:47 +01:00
Edwin Jakobs
6c3d1319cb Update README.md 2020-01-29 12:44:43 +01:00
Edwin Jakobs
ede734d74c Add support for cross building and support for future linux-arm64 version 2020-01-29 12:43:32 +01:00
Edwin Jakobs
89fce80aff Upgrade to OPENRNDR 0.3.38, add TemplateLiveProgram.kt 2020-01-28 00:12:33 +01:00
Edwin Jakobs
0a478a98a6 Fix orx-kinect-v1 native dependencies 2020-01-13 21:00:56 +01:00
Edwin Jakobs
b994ccfd28 Update README.md 2020-01-13 20:17:02 +01:00
edwin
79d9a7971a Bump OPENRNDR, ORX, Panel, Gradle 2019-12-16 18:48:34 +01:00
Edwin Jakobs
d99af16ab8 Bump to ORX 0.3.42 2019-11-29 13:52:05 +01:00
Edwin Jakobs
b781680fb6 Bump to ORX 0.3.41 2019-11-28 16:36:13 +01:00
edwin
e2108f86e5 Bump to OPENRNDR 0.3.36, ORX 0.3.40, Panel 0.3.18 2019-11-25 19:41:26 +01:00
19 changed files with 532 additions and 135 deletions

2
.gitattributes vendored Normal file
View File

@@ -0,0 +1,2 @@
*.bat eol=crlf

15
.github/workflows/build-on-commit.yaml vendored Normal file
View File

@@ -0,0 +1,15 @@
name: Build on commit
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 14
- name: Build sources
run: ./gradlew build

View File

@@ -0,0 +1,30 @@
name: Publish Linux/x64 binaries
on:
push:
tags:
- v0.*
- v0.*.*
- v1.*
- v1.*.*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 14
uses: actions/setup-java@v1
with:
java-version: 14
- name: Build with Gradle
run: ./gradlew jpackageZip
- name: Create Release
uses: ncipollo/release-action@v1.6.1
id: create_release
with:
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
replaceArtifacts: false
body: Fully automated release
artifacts: "./build/distributions/openrndr-application-linux-x64.zip"

View File

@@ -0,0 +1,30 @@
name: Publish macOS binaries
on:
push:
tags:
- v0.*
- v0.*.*
- v1.*
- v1.*.*
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 14
uses: actions/setup-java@v1
with:
java-version: 14
- name: Build with Gradle
run: ./gradlew jpackageZip
- name: Create Release
uses: ncipollo/release-action@v1.6.1
id: create_release
with:
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
replaceArtifacts: false
body: Fully automated release
artifacts: "./build/distributions/openrndr-application-macos.zip"

View File

@@ -0,0 +1,30 @@
name: Publish Windows binaries
on:
push:
tags:
- v0.*
- v0.*.*
- v1.*
- v1.*.*
-
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 14
uses: actions/setup-java@v1
with:
java-version: 14
- name: Build with Gradle
run: ./gradlew jpackageZip
- name: Create Release
uses: ncipollo/release-action@v1.6.1
id: create_release
with:
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
replaceArtifacts: false
body: Fully automated release
artifacts: "./build/distributions/openrndr-application-windows.zip"

2
.gitignore vendored
View File

@@ -2,4 +2,4 @@ application.log
build
out
.idea
.gradle
.gradle

View File

@@ -1,12 +1,24 @@
# openrndr-template
# OPENRNDR template project
A feature rich template for creating OPENRNDR programs based on Gradle/Kts
You will find some [basic instructions](https://guide.openrndr.org/#/02_Getting_Started_with_OPENRNDR/C00_SetupYourFirstProgram) in the [OPENRNDR guide](https://guide.openrndr.org)
The template consists of a configuration for Gradle and an example OPENRNDR program. The Gradle configuration should serve as the
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`
You will find some [basic instructions](https://guide.openrndr.org/#/02_Getting_Started_with_OPENRNDR/C00_SetupYourFirstProgram) in the [OPENRNDR guide](https://guide.openrndr.org)
## Gradle tasks
- `run` runs the TemplateProgram
- `jar` creates an executable platform specific jar file with all dependencies
- `zipDistribution` creates a zip file containing the application jar and the data folder
- `jpackageZip` creates a zip with a stand-alone executable for the current platform (works with Java 14 only)
## Cross builds
To create runnable jars for a platform different from the platform you use to build one uses `./gradlew jar --PtargetPlatform=<platform>`. The supported platforms are `windows`, `macos`, `linux-x64` and `linux-arm64`. Note that the `linux-arm64` platform will only work with OPENRNDR snapshot builds from master and OPENRNDR 0.3.39 (a future version).
## Github Actions
This repository contains a number of Github Actions in `./github/workflows`.
The actions enable a basic build run on commit, plus publication actions that are executed when
a commit is tagged with a version number like `v0.*` or `v1.*`.

View File

@@ -1,52 +1,138 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.gradle.internal.os.OperatingSystem
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform
val kotlinVersion = "1.3.50"
plugins {
java
kotlin("jvm") version("1.3.50")
}
/* the name of this project, default is the template version but you are free to change these */
group = "org.openrndr.template"
version = "0.3.6"
version = "0.3.15"
val applicationMainClass = "TemplateProgramKt"
/* Which additional (ORX) libraries should be added to this project. */
val orxFeatures = setOf(
// "orx-boofcv",
// "orx-camera",
// "orx-chataigne",
// "orx-color",
"orx-compositor",
// "orx-dnk3",
// "orx-easing",
// "orx-file-watcher",
// "orx-filter-extension",
"orx-fx",
// "orx-glslify",
// "orx-gradient-descent",
"orx-gui",
"orx-image-fit",
// "orx-integral-image",
// "orx-interval-tree",
// "orx-jumpflood",
// "orx-kdtree",
// "orx-keyframer",
// "orx-kinect-v1",
// "orx-kotlin-parser",
// "orx-mesh-generators",
// "orx-midi",
// "orx-no-clear",
"orx-noise",
// "orx-obj-loader",
"orx-olive",
// "orx-osc",
// "orx-palette",
"orx-panel",
// "orx-parameters",
// "orx-poisson-fill",
// "orx-rabbit-control",
// "orx-realsense2",
// "orx-runway",
"orx-shade-styles",
// "orx-shader-phrases",
// "orx-shapes",
// "orx-syphon",
// "orx-temporal-blur",
// "orx-tensorflow",
// "orx-time-operators",
// "orx-timer",
// "orx-triangulation",
// "orx-video-profiles",
null
).filterNotNull()
val ormlFeatures = setOf<String>(
// "orml-blazepose",
// "orml-dbface",
// "orml-facemesh",
// "orml-image-classifier",
// "orml-psenet",
// "orml-ssd",
// "orml-style-transfer",
// "orml-super-resolution",
// "orml-u2net"
)
/* Which OPENRNDR libraries should be added to this project? */
val openrndrFeatures = setOf(
"video"
)
/* Which version of OPENRNDR and ORX should be used? */
val openrndrUseSnapshot = false
val openrndrVersion = if (openrndrUseSnapshot) "0.4.0-SNAPSHOT" else "0.3.46"
val orxUseSnapshot = false
val orxVersion = if (orxUseSnapshot) "0.4.0-SNAPSHOT" else "0.3.56"
val ormlUseSnapshot = false
val ormlVersion = if (ormlUseSnapshot) "0.4.0-SNAPSHOT" else "0.3.0-rc.5"
// choices are "orx-tensorflow-gpu", "orx-tensorflow-mkl", "orx-tensorflow"
val orxTensorflowBackend = "orx-tensorflow-mkl"
//<editor-fold desc="This is code for OPENRNDR, no need to edit this .. most of the times">
val supportedPlatforms = setOf("windows", "macos", "linux-x64", "linux-arm64")
val openrndrOs = if (project.hasProperty("targetPlatform")) {
val platform : String = project.property("targetPlatform") as String
if (platform !in supportedPlatforms) {
throw IllegalArgumentException("target platform not supported: $platform")
} else {
platform
}
} else when (OperatingSystem.current()) {
OperatingSystem.WINDOWS -> "windows"
OperatingSystem.MAC_OS -> "macos"
OperatingSystem.LINUX -> when(val h = DefaultNativePlatform("current").architecture.name) {
"x86-64" -> "linux-x64"
"aarch64" -> "linux-arm64"
else ->throw IllegalArgumentException("architecture not supported: $h")
}
else -> throw IllegalArgumentException("os not supported")
}
//</editor-fold>
enum class Logging {
NONE,
SIMPLE,
FULL
}
val applicationLogging = Logging.SIMPLE
/* What type of logging should this project use? */
val applicationLogging = Logging.FULL
val openrndrUseSnapshot = false
val openrndrVersion = if (openrndrUseSnapshot) "0.4.0-SNAPSHOT" else "0.3.35"
val openrndrOs = when (OperatingSystem.current()) {
OperatingSystem.WINDOWS -> "windows"
OperatingSystem.MAC_OS -> "macos"
OperatingSystem.LINUX -> "linux-x64"
else -> throw IllegalArgumentException("os not supported")
val kotlinVersion = "1.4.31"
plugins {
java
kotlin("jvm") version("1.4.31")
id("com.github.johnrengelman.shadow") version ("6.1.0")
id("org.beryx.runtime") version ("1.11.4")
}
// supported features are: video, panel
val openrndrFeatures = setOf("video", "panel")
val panelUseSnapshot = false
val panelVersion = if (panelUseSnapshot) "0.4.0-SNAPSHOT" else "0.3.17-m3"
val orxUseSnapshot = false
val orxVersion = if (orxUseSnapshot) "0.4.0-SNAPSHOT" else "0.3.38"
// supported features are: orx-camera, orx-compositor,orx-easing, orx-filter-extension,orx-file-watcher,
// orx-integral-image, orx-interval-tree, orx-jumpflood, orx-kdtree, orx-mesh-generators,orx-midi, orx-no-clear,
// orx-noise, orx-obj, orx-olive, orx-osc
val orxFeatures = setOf("orx-noise")
repositories {
mavenCentral()
if (openrndrUseSnapshot || orxUseSnapshot || panelUseSnapshot) {
if (openrndrUseSnapshot || orxUseSnapshot) {
mavenLocal()
}
maven(url = "https://dl.bintray.com/openrndr/openrndr")
@@ -56,6 +142,10 @@ fun DependencyHandler.orx(module: String): Any {
return "org.openrndr.extra:$module:$orxVersion"
}
fun DependencyHandler.orml(module: String): Any {
return "org.openrndr.orml:$module:$ormlVersion"
}
fun DependencyHandler.openrndr(module: String): Any {
return "org.openrndr:openrndr-$module:$openrndrVersion"
}
@@ -64,54 +154,74 @@ fun DependencyHandler.openrndrNatives(module: String): Any {
return "org.openrndr:openrndr-$module-natives-$openrndrOs:$openrndrVersion"
}
fun DependencyHandler.orxNatives(module: String): Any {
return "org.openrndr.extra:$module-natives-$openrndrOs:$orxVersion"
}
dependencies {
runtime(openrndr("gl3"))
runtime(openrndrNatives("gl3"))
compile(openrndr("core"))
compile(openrndr("svg"))
compile(openrndr("animatable"))
compile(openrndr("extensions"))
compile(openrndr("filter"))
/* This is where you add additional (third-party) dependencies */
compile("org.jetbrains.kotlinx", "kotlinx-coroutines-core","1.3.0")
// implementation("org.jsoup:jsoup:1.12.2")
// implementation("com.google.code.gson:gson:2.8.6")
compile("io.github.microutils", "kotlin-logging","1.7.6")
runtimeOnly(openrndr("gl3"))
runtimeOnly(openrndrNatives("gl3"))
implementation(openrndr("openal"))
runtimeOnly(openrndrNatives("openal"))
implementation(openrndr("core"))
implementation(openrndr("svg"))
implementation(openrndr("animatable"))
implementation(openrndr("extensions"))
implementation(openrndr("filter"))
implementation("org.jetbrains.kotlinx", "kotlinx-coroutines-core","1.4.2")
implementation("io.github.microutils", "kotlin-logging-jvm","2.0.4")
when(applicationLogging) {
Logging.NONE -> {
runtime("org.slf4j","slf4j-nop","1.7.29")
runtimeOnly("org.slf4j","slf4j-nop","1.7.30")
}
Logging.SIMPLE -> {
runtime("org.slf4j","slf4j-simple","1.7.29")
runtimeOnly("org.slf4j","slf4j-simple","1.7.30")
}
Logging.FULL -> {
runtime("org.apache.logging.log4j", "log4j-slf4j-impl", "2.12.1")
runtime("com.fasterxml.jackson.core", "jackson-databind", "2.8.7")
runtime("com.fasterxml.jackson.dataformat", "jackson-dataformat-yaml", "2.8.7")
runtimeOnly("org.apache.logging.log4j", "log4j-slf4j-impl", "2.13.3")
runtimeOnly("com.fasterxml.jackson.core", "jackson-databind", "2.11.1")
runtimeOnly("com.fasterxml.jackson.dataformat", "jackson-dataformat-yaml", "2.11.1")
}
}
if ("video" in openrndrFeatures) {
compile(openrndr("ffmpeg"))
runtime(openrndrNatives("ffmpeg"))
}
if ("panel" in openrndrFeatures) {
compile("org.openrndr.panel:openrndr-panel:$panelVersion")
implementation(openrndr("ffmpeg"))
runtimeOnly(openrndrNatives("ffmpeg"))
}
for (feature in orxFeatures) {
compile(orx(feature))
implementation(orx(feature))
}
for (feature in ormlFeatures) {
implementation(orml(feature))
}
if ("orx-tensorflow" in orxFeatures) {
runtimeOnly("org.openrndr.extra:$orxTensorflowBackend-natives-$openrndrOs:$orxVersion")
}
if ("orx-kinect-v1" in orxFeatures) {
runtimeOnly(orxNatives("orx-kinect-v1"))
}
if ("orx-olive" in orxFeatures) {
compile("org.jetbrains.kotlin", "kotlin-scripting-compiler-embeddable")
implementation("org.jetbrains.kotlin:kotlin-script-runtime:$kotlinVersion")
}
implementation(kotlin("stdlib-jdk8"))
testCompile("junit", "junit", "4.12")
testImplementation("junit", "junit", "4.12")
}
// --------------------------------------------------------------------------------------------------------------------
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_1_8
}
@@ -119,28 +229,65 @@ tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
tasks.withType<Jar> {
manifest {
attributes["Main-Class"] = applicationMainClass
}
doFirst {
from(configurations.compileClasspath.get().map { if (it.isDirectory) it else zipTree(it) })
from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) })
}
exclude(listOf("META-INF/*.RSA", "META-INF/*.SF", "META-INF/*.DSA", "**/module-info*"))
archiveFileName.set("application-$openrndrOs.jar")
project.setProperty("mainClassName", applicationMainClass)
tasks {
named<ShadowJar>("shadowJar") {
manifest {
attributes["Main-Class"] = applicationMainClass
}
minimize {
exclude(dependency("org.openrndr:openrndr-gl3:.*"))
exclude(dependency("org.jetbrains.kotlin:kotlin-reflect:.*"))
}
}
named<org.beryx.runtime.JPackageTask>("jpackage") {
doLast {
when (OperatingSystem.current()) {
OperatingSystem.WINDOWS, OperatingSystem.LINUX -> {
copy {
from("data") {
include("**/*")
}
into("build/jpackage/openrndr-application/data")
}
}
OperatingSystem.MAC_OS -> {
copy {
from("data") {
include("**/*")
}
into("build/jpackage/openrndr-application.app/data")
}
}
}
}
}
}
tasks.create("zipDistribution", Zip::class.java) {
archiveFileName.set("application-$openrndrOs.zip")
from("./") {
include("data/**")
tasks.register<Zip>("jpackageZip") {
archiveFileName.set("openrndr-application-$openrndrOs.zip")
from("$buildDir/jpackage") {
include("**/*")
}
from("$buildDir/libs/application-$openrndrOs.jar")
}.dependsOn(tasks.jar)
}
tasks.findByName("jpackageZip")?.dependsOn("jpackage")
tasks.create("run", JavaExec::class.java) {
main = applicationMainClass
classpath = sourceSets.main.get().runtimeClasspath
}.dependsOn(tasks.build)
runtime {
jpackage {
imageName = "openrndr-application"
skipInstaller = true
if (OperatingSystem.current() == OperatingSystem.MAC_OS) {
jvmArgs.add("-XstartOnFirstThread")
}
}
options.empty()
options.add("--strip-debug")
options.add("--compress")
options.add("1")
options.add("--no-header-files")
options.add("--no-man-pages")
modules.empty()
modules.add("jdk.unsupported")
modules.add("java.management")
}

Binary file not shown.

BIN
data/fonts/default.otf Normal file

Binary file not shown.

92
data/fonts/license.txt Normal file
View File

@@ -0,0 +1,92 @@
Copyright © 2017 IBM Corp. with Reserved Font Name "Plex"
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

BIN
data/images/cheeta.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

View File

@@ -1,6 +1,5 @@
#Thu Aug 01 12:32:31 CEST 2019
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-all.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

53
gradlew vendored
View File

@@ -1,5 +1,21 @@
#!/usr/bin/env sh
#
# Copyright 2015 the original author or authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
##############################################################################
##
## Gradle start up script for UN*X
@@ -28,7 +44,7 @@ APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m"'
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
@@ -66,6 +82,7 @@ esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
@@ -109,10 +126,11 @@ if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi
# For Cygwin, switch paths to Windows format before running java
if $cygwin ; then
# For Cygwin or MSYS, switch paths to Windows format before running java
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
JAVACMD=`cygpath --unix "$JAVACMD"`
# We build the pattern for arguments to be converted via cygpath
@@ -138,19 +156,19 @@ if $cygwin ; then
else
eval `echo args$i`="\"$arg\""
fi
i=$((i+1))
i=`expr $i + 1`
done
case $i in
(0) set -- ;;
(1) set -- "$args0" ;;
(2) set -- "$args0" "$args1" ;;
(3) set -- "$args0" "$args1" "$args2" ;;
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
0) set -- ;;
1) set -- "$args0" ;;
2) set -- "$args0" "$args1" ;;
3) set -- "$args0" "$args1" "$args2" ;;
4) set -- "$args0" "$args1" "$args2" "$args3" ;;
5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
esac
fi
@@ -159,14 +177,9 @@ save () {
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
echo " "
}
APP_ARGS=$(save "$@")
APP_ARGS=`save "$@"`
# Collect all arguments for the java command, following the shell quoting and substitution rules
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
cd "$(dirname "$0")"
fi
exec "$JAVACMD" "$@"

43
gradlew.bat vendored
View File

@@ -1,3 +1,19 @@
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem https://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@@ -13,15 +29,18 @@ if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS="-Xmx64m"
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init
if "%ERRORLEVEL%" == "0" goto execute
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
@@ -35,7 +54,7 @@ goto fail
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto init
if exist "%JAVA_EXE%" goto execute
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
@@ -45,28 +64,14 @@ echo location of your Java installation.
goto fail
:init
@rem Get command-line arguments, handling Windows variants
if not "%OS%" == "Windows_NT" goto win9xME_args
:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2
:win9xME_args_slurp
if "x%~1" == "x" goto execute
set CMD_LINE_ARGS=%*
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
:end
@rem End local scope for the variables with windows NT shell

View File

@@ -0,0 +1,22 @@
import org.openrndr.application
import org.openrndr.color.ColorRGBa
import org.openrndr.extra.olive.oliveProgram
/**
* This is a template for a live program.
*
* It uses oliveProgram {} instead of program {}. All code inside the
* oliveProgram {} can be changed while the program is running.
*/
fun main() = application {
configure {
width = 800
height = 800
}
oliveProgram {
extend {
drawer.clear(ColorRGBa.PINK)
}
}
}

View File

@@ -13,9 +13,8 @@ fun main() = application {
}
program {
val image = loadImage("data/images/pm5544.png")
val font = loadFont("data/fonts/IBMPlexMono-Regular.ttf", 64.0)
val font = loadFont("data/fonts/default.otf", 64.0)
extend {
drawer.drawStyle.colorMatrix = tint(ColorRGBa.WHITE.shade(0.2))
@@ -29,4 +28,4 @@ fun main() = application {
drawer.text("OPENRNDR", width / 2.0, height / 2.0)
}
}
}
}

View File

@@ -1,20 +1,21 @@
Configuration:
status: warn
Appenders:
Console:
name: Console
target: SYSTEM_OUT
Console:
- name: Console_Info
target: SYSTEM_ERR
PatternLayout:
Pattern: "%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"
File:
append: false
name: File_Appender
fileName: application.log
PatternLayout:
Pattern: "%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"
Pattern: "%highlight{${LOG_LEVEL_PATTERN:-%5p}}{FATAL=red, ERROR=red, WARN=yellow, INFO=green, DEBUG=green, TRACE=green} %style{[%t]}{white} %style{%-30.30c{1.}}{white} %style{ ↘ %m%n%ex}{white}"
#Pattern: "%style{%d{yyyy-MM-dd HH:mm:ss.SSS}}{white} %highlight{${LOG_LEVEL_PATTERN:-%5p}}{FATAL=red, ERROR=red, WARN=yellow, INFO=green, DEBUG=green, TRACE=green} %style{[%t]}{white} %style{%-30.30c{1.}}{cyan} %style{:%m%n%ex}{white}"
File:
append: false
name: File_Appender
fileName: application.log
PatternLayout:
Pattern: "%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"
Loggers:
Root:
level: debug
level: info
AppenderRef:
- ref: Console
- ref: Console_Info
- ref: File_Appender