aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/TemplateProgram.kt
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2026-08-30 22:41:25 +0530
committerAkshay Nair <phenax5@gmail.com>2026-08-30 22:41:28 +0530
commitfecebfd39809f862e098805219b15c50588bb81a (patch)
treef600ad9667ab4d087113fad0f6898d61ade97cfc /src/main/kotlin/TemplateProgram.kt
parent326474823ca31ad8ae424dd1d991c0330f2b3db4 (diff)
downloadart-playground-openrndr-fecebfd39809f862e098805219b15c50588bb81a.tar.gz
art-playground-openrndr-fecebfd39809f862e098805219b15c50588bb81a.zip
Development setup + toggling recording
Diffstat (limited to '')
-rw-r--r--src/main/kotlin/TemplateProgram.kt31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/main/kotlin/TemplateProgram.kt b/src/main/kotlin/TemplateProgram.kt
deleted file mode 100644
index b8e2afe..0000000
--- a/src/main/kotlin/TemplateProgram.kt
+++ /dev/null
@@ -1,31 +0,0 @@
-import org.openrndr.application
-import org.openrndr.color.ColorRGBa
-import org.openrndr.draw.loadFont
-import org.openrndr.draw.loadImage
-import org.openrndr.extra.color.colormatrix.tint
-import kotlin.math.cos
-import kotlin.math.sin
-
-fun main() = application {
- configure {
- width = 768
- height = 576
- }
-
- program {
- val image = loadImage("data/images/pm5544.png")
- val font = loadFont("data/fonts/default.otf", 64.0)
-
- extend {
- drawer.drawStyle.colorMatrix = tint(ColorRGBa.WHITE.shade(0.2))
- drawer.image(image)
-
- drawer.fill = ColorRGBa.PINK
- drawer.circle(cos(seconds) * width / 2.0 + width / 2.0, sin(0.5 * seconds) * height / 2.0 + height / 2.0, 140.0)
-
- drawer.fontMap = font
- drawer.fill = ColorRGBa.WHITE
- drawer.text("OPENRNDR", width / 2.0, height / 2.0)
- }
- }
-}