Add ApplicationPreload mechanism to collectScreenshots
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
import Orx_collect_screenshots_gradle.ScreenshotsHelper.collectScreenshots
|
||||
import ScreenshotsHelper.collectScreenshots
|
||||
|
||||
plugins {
|
||||
kotlin("multiplatform")
|
||||
kotlin("plugin.serialization")
|
||||
id("orx.collect-screenshots")
|
||||
}
|
||||
|
||||
val kotlinxSerializationVersion: String by rootProject.extra
|
||||
|
||||
@@ -16,13 +16,6 @@ fun main() {
|
||||
|
||||
}
|
||||
program {
|
||||
// -- this block is for automation purposes only
|
||||
if (System.getProperty("takeScreenshot") == "true") {
|
||||
extend(SingleScreenshot()) {
|
||||
this.outputFile = System.getProperty("screenshotPath")
|
||||
}
|
||||
}
|
||||
|
||||
val mesh = sphereMesh(8, 8, radius = 0.1)
|
||||
|
||||
val instanceData = vertexBuffer(
|
||||
@@ -32,8 +25,7 @@ fun main() {
|
||||
},
|
||||
90 * 100
|
||||
)
|
||||
|
||||
|
||||
println(extensions.size)
|
||||
extend(Orbital())
|
||||
|
||||
extend {
|
||||
|
||||
@@ -15,12 +15,6 @@ fun main() {
|
||||
height = 800
|
||||
}
|
||||
program {
|
||||
// -- this block is for automation purposes only
|
||||
if (System.getProperty("takeScreenshot") == "true") {
|
||||
extend(SingleScreenshot()) {
|
||||
this.outputFile = System.getProperty("screenshotPath")
|
||||
}
|
||||
}
|
||||
val mesh = sphereMesh(8, 8, radius = 0.1)
|
||||
|
||||
val instanceData = vertexBuffer(
|
||||
|
||||
@@ -12,12 +12,6 @@ import org.openrndr.shape.Rectangle
|
||||
|
||||
fun main() = application {
|
||||
program {
|
||||
// -- this block is for automation purposes only
|
||||
if (System.getProperty("takeScreenshot") == "true") {
|
||||
extend(SingleScreenshot()) {
|
||||
this.outputFile = System.getProperty("screenshotPath")
|
||||
}
|
||||
}
|
||||
val numColors = 10
|
||||
val colorLists = listOf(
|
||||
ColorRGBa.PINK..ColorRGBa.BLUE.toHSVa() blend numColors,
|
||||
|
||||
@@ -11,12 +11,6 @@ import org.openrndr.extras.color.spaces.toHSLUVa
|
||||
|
||||
fun main() = application {
|
||||
program {
|
||||
// -- this block is for automation purposes only
|
||||
if (System.getProperty("takeScreenshot") == "true") {
|
||||
extend(SingleScreenshot()) {
|
||||
this.outputFile = System.getProperty("screenshotPath")
|
||||
}
|
||||
}
|
||||
extend {
|
||||
val cs = colorSequence(0.0 to ColorRGBa.PINK,
|
||||
0.5 to ColorRGBa.BLUE,
|
||||
|
||||
@@ -11,12 +11,6 @@ import org.openrndr.extras.color.spaces.toXSLUVa
|
||||
fun main() {
|
||||
application {
|
||||
program {
|
||||
// -- this block is for automation purposes only
|
||||
if (System.getProperty("takeScreenshot") == "true") {
|
||||
extend(SingleScreenshot()) {
|
||||
this.outputFile = System.getProperty("screenshotPath")
|
||||
}
|
||||
}
|
||||
extend {
|
||||
drawer.clear(ColorRGBa.WHITE)
|
||||
|
||||
|
||||
@@ -21,13 +21,6 @@ fun main() {
|
||||
|
||||
}
|
||||
program {
|
||||
// -- this block is for automation purposes only
|
||||
if (System.getProperty("takeScreenshot") == "true") {
|
||||
extend(SingleScreenshot()) {
|
||||
this.outputFile = System.getProperty("screenshotPath")
|
||||
}
|
||||
}
|
||||
|
||||
val mesh = sphereMesh(8, 8, radius = 0.1)
|
||||
|
||||
extend(Orbital())
|
||||
|
||||
@@ -14,12 +14,6 @@ import org.openrndr.shape.Rectangle
|
||||
fun main() {
|
||||
application {
|
||||
program {
|
||||
// -- this block is for automation purposes only
|
||||
if (System.getProperty("takeScreenshot") == "true") {
|
||||
extend(SingleScreenshot()) {
|
||||
this.outputFile = System.getProperty("screenshotPath")
|
||||
}
|
||||
}
|
||||
val font = loadFont("demo-data/fonts/IBMPlexMono-Regular.ttf", 26.0)
|
||||
extend {
|
||||
drawer.stroke = null
|
||||
|
||||
@@ -23,13 +23,6 @@ fun main() {
|
||||
}
|
||||
|
||||
program {
|
||||
// -- this block is for automation purposes only
|
||||
if (System.getProperty("takeScreenshot") == "true") {
|
||||
extend(SingleScreenshot()) {
|
||||
this.outputFile = System.getProperty("screenshotPath")
|
||||
}
|
||||
}
|
||||
|
||||
extend {
|
||||
drawer.clear(ColorRGBa.GRAY)
|
||||
val color = ColorRGBa.RED
|
||||
|
||||
@@ -7,12 +7,6 @@ import org.openrndr.extras.color.statistics.calculateHistogramRGB
|
||||
|
||||
fun main() = application {
|
||||
program {
|
||||
// -- this block is for automation purposes only
|
||||
if (System.getProperty("takeScreenshot") == "true") {
|
||||
extend(SingleScreenshot()) {
|
||||
this.outputFile = System.getProperty("screenshotPath")
|
||||
}
|
||||
}
|
||||
val useColors = 32
|
||||
val image = loadImage("demo-data/images/image-001.png")
|
||||
|
||||
|
||||
@@ -8,12 +8,6 @@ import kotlin.math.pow
|
||||
|
||||
fun main() = application {
|
||||
program {
|
||||
// -- this block is for automation purposes only
|
||||
if (System.getProperty("takeScreenshot") == "true") {
|
||||
extend(SingleScreenshot()) {
|
||||
this.outputFile = System.getProperty("screenshotPath")
|
||||
}
|
||||
}
|
||||
val image = loadImage("demo-data/images/image-001.png")
|
||||
// -- here we use non-uniform weighting, such that bright colors are prioritized
|
||||
val histogram = calculateHistogramRGB(image, weighting = {
|
||||
|
||||
@@ -7,12 +7,6 @@ import org.openrndr.extras.color.statistics.calculateHistogramRGB
|
||||
|
||||
fun main() = application {
|
||||
program {
|
||||
// -- this block is for automation purposes only
|
||||
if (System.getProperty("takeScreenshot") == "true") {
|
||||
extend(SingleScreenshot()) {
|
||||
this.outputFile = System.getProperty("screenshotPath")
|
||||
}
|
||||
}
|
||||
val image = loadImage("demo-data/images/image-001.png")
|
||||
val histogram = calculateHistogramRGB(image)
|
||||
extend {
|
||||
|
||||
@@ -39,13 +39,6 @@ fun main() {
|
||||
}
|
||||
|
||||
program {
|
||||
// -- this block is for automation purposes only
|
||||
if (System.getProperty("takeScreenshot") == "true") {
|
||||
extend(SingleScreenshot()) {
|
||||
this.outputFile = System.getProperty("screenshotPath")
|
||||
}
|
||||
}
|
||||
|
||||
val arcs = (0..4).map { Arc(it * 90.0 - 45.0, 50.0, 90.0, 50.0) }.split(5)
|
||||
|
||||
extend {
|
||||
|
||||
Reference in New Issue
Block a user