[openrndr-demos] disable composition drawer demo

This commit is contained in:
Edwin Jakobs
2020-10-12 10:25:36 +02:00
parent e7579a79f5
commit 2ddc5f747d

View File

@@ -2,7 +2,7 @@ import org.openrndr.application
import org.openrndr.color.ColorRGBa import org.openrndr.color.ColorRGBa
import org.openrndr.math.Vector2 import org.openrndr.math.Vector2
import org.openrndr.shape.drawComposition import org.openrndr.shape.drawComposition
import org.openrndr.svg.svgNamespaceInkscape //import org.openrndr.svg.svgNamespaceInkscape
import org.openrndr.svg.toSVG import org.openrndr.svg.toSVG
import org.openrndr.svg.writeSVG import org.openrndr.svg.writeSVG
@@ -22,15 +22,15 @@ fun main() {
} }
// demonstrating how to set custom attributes on the CompositionNode // demonstrating how to set custom attributes on the CompositionNode
// these are stored in SVG // these are stored in SVG
layer.id = "Layer_2" // layer.id = "Layer_2"
layer.attributes["inkscape:label"] = "Layer 1" // layer.attributes["inkscape:label"] = "Layer 1"
layer.attributes["inkscape:groupmode"] = "layer" // layer.attributes["inkscape:groupmode"] = "layer"
} }
// draw the composition to the screen // draw the composition to the screen
drawer.composition(composition) drawer.composition(composition)
// print the svg to the console // print the svg to the console
println(composition.toSVG(namespaces = listOf(svgNamespaceInkscape))) // println(composition.toSVG(namespaces = listOf(svgNamespaceInkscape)))
} }
} }
} }