add demos to README.md
This commit is contained in:
@@ -24,6 +24,7 @@ Demonstrates how to
|
||||
- Draw it on the program window
|
||||
- Save it to an SVG file
|
||||
- Print the SVG content as text
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/DemoCompositionDrawer01.kt)
|
||||
@@ -37,6 +38,7 @@ The first shape clips part of the second one away,
|
||||
producing a shape that seems to be behind the first one.
|
||||
|
||||
Without clipping, the second circle would cover part of the first one.
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/DemoCompositionDrawer02.kt)
|
||||
@@ -51,6 +53,7 @@ a complete circle, a moon-like shape, and a shape with two small black areas.
|
||||
One way to verify this is by saving the design as an SVG file and opening
|
||||
it in vector editing software.
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/DemoCompositionDrawer03.kt)
|
||||
@@ -62,6 +65,7 @@ Demonstrates how to add content to and how to clear an existing Composition.
|
||||
A number of circles are added when the program starts.
|
||||
Dragging the mouse button adds more circles.
|
||||
Right-clicking the mouse clears the Composition.
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/DemoCompositionDrawer04.kt)
|
||||
@@ -72,6 +76,7 @@ Demonstrates how to
|
||||
|
||||
- Create a Composition with a group
|
||||
- Add XML attributes so the group appears as a layer in Inkscape
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/DemoCompositionDrawer05.kt)
|
||||
|
||||
Reference in New Issue
Block a user