File tree Expand file tree Collapse file tree 2 files changed +19
-14
lines changed Expand file tree Collapse file tree 2 files changed +19
-14
lines changed Original file line number Diff line number Diff line change
1
+ import ScreenshotsHelper.collectScreenshots
2
+
1
3
sourceSets {
2
- demo {
4
+ val main by getting { }
5
+ val demo by creating {
3
6
java {
4
- srcDirs = [ " src/demo/kotlin" ]
7
+ srcDir( " src/demo/kotlin" )
5
8
compileClasspath + = main.getCompileClasspath()
6
9
runtimeClasspath + = main.getRuntimeClasspath()
7
10
}
8
11
}
12
+ collectScreenshots(project, demo) { }
9
13
}
14
+
15
+ val openrndrVersion: String by rootProject.extra
16
+ val openrndrOS: String by rootProject.extra
17
+
18
+ val demoImplementation by configurations.getting {}
19
+ val demoRuntimeOnly by configurations.getting {}
20
+
10
21
dependencies {
11
- implementation project(" :orx-fx" )
12
- implementation project(" :orx-noise" )
22
+ implementation( project(" :orx-fx" ) )
23
+ implementation( project(" :orx-noise" ) )
13
24
implementation(" org.openrndr:openrndr-filter:$openrndrVersion " )
14
25
demoImplementation(" org.openrndr:openrndr-application:$openrndrVersion " )
15
26
demoImplementation(" org.openrndr:openrndr-extensions:$openrndrVersion " )
16
27
demoRuntimeOnly(" org.openrndr:openrndr-gl3:$openrndrVersion " )
17
28
demoRuntimeOnly(" org.openrndr:openrndr-gl3-natives-$openrndrOS :$openrndrVersion " )
18
29
demoImplementation(sourceSets.getByName(" main" ).output)
19
- }
30
+ }
Original file line number Diff line number Diff line change @@ -16,19 +16,13 @@ import org.openrndr.poissonfill.PoissonFill
16
16
import org.openrndr.shape.Rectangle
17
17
import kotlin.math.sin
18
18
19
- data class Thing (val color : ColorRGBa , var pos : Polar , val speed : Polar )
20
19
21
20
fun main () {
22
- application {
23
- program {
21
+ data class Thing (val color : ColorRGBa , var pos : Polar , val speed : Polar )
24
22
25
- // -- this block is for automation purposes only
26
- if (System .getProperty(" takeScreenshot" ) == " true" ) {
27
- extend(SingleScreenshot ()) {
28
- this .outputFile = System .getProperty(" screenshotPath" )
29
- }
30
- }
31
23
24
+ application {
25
+ program {
32
26
val dry = renderTarget(width, height) {
33
27
colorBuffer(type = ColorType .FLOAT32 )
34
28
}
You can’t perform that action at this time.
0 commit comments