33 lines
1.3 KiB
Markdown
33 lines
1.3 KiB
Markdown
# orx-composition
|
|
|
|
Shape composition library
|
|
|
|
One can think of a Composition as a vector design made out of primitives
|
|
like ShapeContour, Shape, or LineSegment, each having its fill color,
|
|
stroke color and stroke weight.
|
|
|
|
Compositions can be loaded from SVG files and then queried or altered via code.
|
|
|
|
Composition can also be generated from scratch, typically using `drawComposition { ... }`, then saved as an SVG file.
|
|
|
|
Read about Composition [in the guide](https://guide.openrndr.org/drawing/drawingSVG.html).
|
|
|
|
_The code in `orx-composition` was previously found under `openrndr-draw` in the `openrndr` repository._
|
|
|
|
<!-- __demos__ -->
|
|
## Demos
|
|
### DemoCompositionDrawer01
|
|
[source code](src/jvmDemo/kotlin/DemoCompositionDrawer01.kt)
|
|
|
|

|
|
|
|
### DemoCompositionDrawer02
|
|
[source code](src/jvmDemo/kotlin/DemoCompositionDrawer02.kt)
|
|
|
|

|
|
|
|
### DemoCompositionDrawer03
|
|
[source code](src/jvmDemo/kotlin/DemoCompositionDrawer03.kt)
|
|
|
|

|