Repository navigation
Expand file tree
/
Copy pathindex.kt
More file actions
54 lines (42 loc) · 1.47 KB
/
Copy pathindex.kt
File metadata and controls
54 lines (42 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
@file:Suppress("UNUSED_EXPRESSION")
@file:Title("What is OPENRNDR?")
package docs
import org.openrndr.application
import org.openrndr.color.ColorRGBa
import org.openrndr.dokgen.annotations.*
import kotlin.math.abs
import kotlin.math.cos
fun main() {
@Text
"""
# What is OPENRNDR?
OPENRNDR is an application framework and a library for creative coding written in [Kotlin](https://kotlinlang.org).
OPENRNDR offers APIs for easy and flexible programming of accelerated graphics.
OPENRNDR is intended for prototyping as well as building production quality software.
OPENRNDR is free and open source software. The source code can be found on [Github](https://github.com/openrndr/openrndr).
OPENRNDR is an initiative of the [RNDR](http://rndr.studio) studio for interactive and interaction design based in The Netherlands.
# A simple OPENRNDR program
Here we show a very simple program written using OPENRNDR.
"""
@Media.Video "media/what-is-001.mp4"
@Application
@ProduceVideo("media/what-is-001.mp4", 6.28318)
@Code
application {
@Exclude
configure {
width = 770
height = 568
}
program {
extend {
drawer.clear(ColorRGBa.PINK)
drawer.fill = ColorRGBa.WHITE
drawer.circle(
drawer.bounds.center,
abs(cos(seconds)) * height * 0.51
)
}
}
}
}