Skip to content

openrndr/openrndr-js-template

Repository files navigation

OPENRNDR JavaScript template project

This is a template project for creating OPENRNDR programs specifically with Kotlin/JS. For making a standard Kotlin/JVM-based application, see openrndr-template.

Developing

To get started developing, run

./gradlew browserDevelopmentRun --continuous

This will start a local development server with hot-reloading.

Any changes you make in /src/main/kotlin will be reflected in the browser.

Exporting

When the project is ready to be shared, one can export a minimized executable by running

./gradlew browserDistribution

This will place an index.html file and the openrndr-program.js under the build/dist/js/productionExecutable/ folder.

next-version branch

Note that there is a next-version branch which may offer better performance or new features.