Fix DemoStraightSkeleton01.kt
This commit is contained in:
@@ -8,8 +8,6 @@ import org.openrndr.extra.fx.distort.FluidDistort
|
|||||||
import org.openrndr.extra.jumpfill.ShapeSDF
|
import org.openrndr.extra.jumpfill.ShapeSDF
|
||||||
import org.openrndr.extra.jumpfill.draw.SDFStrokeFill
|
import org.openrndr.extra.jumpfill.draw.SDFStrokeFill
|
||||||
import org.openrndr.extra.jumpfill.ops.*
|
import org.openrndr.extra.jumpfill.ops.*
|
||||||
import org.openrndr.ffmpeg.ScreenRecorder
|
|
||||||
import org.openrndr.math.Vector3
|
|
||||||
import org.openrndr.math.transforms.transform
|
import org.openrndr.math.transforms.transform
|
||||||
import org.openrndr.svg.loadSVG
|
import org.openrndr.svg.loadSVG
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
package sketches
|
|
||||||
|
|
||||||
import org.openrndr.application
|
import org.openrndr.application
|
||||||
import org.openrndr.color.ColorRGBa
|
import org.openrndr.color.ColorRGBa
|
||||||
import org.openrndr.draw.ColorType
|
import org.openrndr.draw.ColorType
|
||||||
@@ -17,18 +15,18 @@ fun main() {
|
|||||||
height = 720
|
height = 720
|
||||||
}
|
}
|
||||||
program {
|
program {
|
||||||
val straightSkeleton = StraightSkeleton()
|
|
||||||
|
|
||||||
val input = renderTarget(width, height) {
|
|
||||||
colorBuffer()
|
|
||||||
}
|
|
||||||
val field = input.colorBuffer(0).createEquivalent(type = ColorType.FLOAT32)
|
|
||||||
|
|
||||||
if (System.getProperty("takeScreenshot") == "true") {
|
if (System.getProperty("takeScreenshot") == "true") {
|
||||||
extend(SingleScreenshot()) {
|
extend(SingleScreenshot()) {
|
||||||
this.outputFile = System.getProperty("screenshotPath")
|
this.outputFile = System.getProperty("screenshotPath")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val straightSkeleton = StraightSkeleton()
|
||||||
|
val input = renderTarget(width, height) {
|
||||||
|
colorBuffer()
|
||||||
|
}
|
||||||
|
val field = input.colorBuffer(0).createEquivalent(type = ColorType.FLOAT32)
|
||||||
|
|
||||||
extend {
|
extend {
|
||||||
drawer.isolatedWithTarget(input) {
|
drawer.isolatedWithTarget(input) {
|
||||||
// -- draw something interesting
|
// -- draw something interesting
|
||||||
|
|||||||
Reference in New Issue
Block a user