mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
examples: ++svg samples
This commit is contained in:
parent
ce61a33756
commit
d807ac91ea
2 changed files with 109 additions and 2 deletions
|
@ -26,8 +26,8 @@
|
|||
/* ThorVG Drawing Contents */
|
||||
/************************************************************************/
|
||||
|
||||
#define NUM_PER_ROW 8
|
||||
#define NUM_PER_COL 8
|
||||
#define NUM_PER_ROW 9
|
||||
#define NUM_PER_COL 9
|
||||
|
||||
struct UserExample : tvgexam::Example
|
||||
{
|
||||
|
|
|
@ -0,0 +1,107 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
width="42.213593"
|
||||
height="63.511623"
|
||||
viewBox="0 0 42.213593 63.511624"
|
||||
version="1.1"
|
||||
id="svg1"
|
||||
inkscape:version="1.3 (0e150ed6c4, 2023-07-21)"
|
||||
sodipodi:docname="tree.svg"
|
||||
xml:space="preserve"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"><sodipodi:namedview
|
||||
id="namedview1"
|
||||
pagecolor="#505050"
|
||||
bordercolor="#eeeeee"
|
||||
borderopacity="1"
|
||||
inkscape:showpageshadow="false"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pagecheckerboard="false"
|
||||
inkscape:deskcolor="#505050"
|
||||
inkscape:document-units="px"
|
||||
labelstyle="default"
|
||||
inkscape:zoom="4.5482768"
|
||||
inkscape:cx="-7.4753585"
|
||||
inkscape:cy="90.583756"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1017"
|
||||
inkscape:window-x="-8"
|
||||
inkscape:window-y="-8"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="layer1" /><defs
|
||||
id="defs1"><linearGradient
|
||||
id="linearGradient7"
|
||||
inkscape:collect="always"><stop
|
||||
style="stop-color:#58391d;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop7" /><stop
|
||||
style="stop-color:#262f1f;stop-opacity:1;"
|
||||
offset="1"
|
||||
id="stop8" /></linearGradient><inkscape:perspective
|
||||
sodipodi:type="inkscape:persp3d"
|
||||
inkscape:vp_x="195.60993 : -210.91845 : 1"
|
||||
inkscape:vp_y="0 : 999.99999 : 0"
|
||||
inkscape:vp_z="738.07963 : -297.48953 : 1"
|
||||
inkscape:persp3d-origin="400 : -336.48838 : 1"
|
||||
id="perspective1" /><linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient7"
|
||||
id="linearGradient1"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x1="1533.9375"
|
||||
y1="554.57574"
|
||||
x2="1533.9375"
|
||||
y2="559.92389" /></defs><g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(-800.74737,-1756.4606)"><text
|
||||
xml:space="preserve"
|
||||
style="font-size:37.3333px;font-family:Georgia;-inkscape-font-specification:Georgia;fill:#856944;fill-opacity:1;stroke:none;stroke-width:3;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers"
|
||||
x="982.45825"
|
||||
y="503.88559"
|
||||
id="text5"><tspan
|
||||
sodipodi:role="line"
|
||||
id="tspan5"
|
||||
x="982.45825"
|
||||
y="503.88559"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Impact;-inkscape-font-specification:Impact" /></text><g
|
||||
id="g3-9-0"
|
||||
transform="matrix(0.7533608,0,0,0.7533608,-334.80263,1398.1475)"
|
||||
style="stroke-width:1.32739"><g
|
||||
id="g2-5-3-0"
|
||||
style="stroke-width:1.32739"><path
|
||||
style="fill:url(#linearGradient1);fill-opacity:1;stroke:none;stroke-width:13.2738;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers"
|
||||
d="m 1531.8561,542.06412 -1.4624,15.35448 c 3.1087,2.743 6.1096,3.85266 10.7848,0.0914 l -2.1936,-15.62865 z"
|
||||
id="path15-4-0-1-07-4"
|
||||
sodipodi:nodetypes="ccccc" /><path
|
||||
style="fill:#63a35b;fill-opacity:1;stroke:none;stroke-width:13.2738;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers"
|
||||
d="m 1507.3123,541.60715 c 0,0 12.0847,9.29546 28.4738,9.29546 17.4118,0 27.5599,-11.48896 27.5599,-11.48896 l -11.5972,-10.14491 8.1524,-4.29559 -9.7599,-8.4998 7.4636,-4.02141 -24.687,-36.83245 -19.4052,36.74105 6.2005,4.02141 -7.4635,11.69864 6.43,2.0107 z"
|
||||
id="path14-8-0-7-67-2"
|
||||
sodipodi:nodetypes="ccccccccccccc" /><path
|
||||
style="fill:#3c7958;fill-opacity:1;stroke:none;stroke-width:5.30954;stroke-linejoin:round;paint-order:stroke fill markers"
|
||||
d="m 1531.2377,509.61227 c -8.4753,12.31745 -23.9254,31.99488 -23.9254,31.99488 13.8995,9.60535 38.631,15.88717 56.0337,-2.1935 0,0 -26.0061,-24.60319 -32.1083,-29.80138 z"
|
||||
id="path1-7-0-8-61-7"
|
||||
sodipodi:nodetypes="cccc" /><path
|
||||
style="fill:#348157;fill-opacity:1;stroke:none;stroke-width:5.30954;stroke-linejoin:round;paint-order:stroke fill markers"
|
||||
d="m 1531.0899,498.4588 c -8.4753,12.31745 -18.8402,29.62179 -18.8402,29.62179 0,0 24.5986,13.73018 47.6515,-3.10744 0,0 -22.7091,-21.31616 -28.8113,-26.51435 z"
|
||||
id="path1-7-8-04-3"
|
||||
sodipodi:nodetypes="cccc" /><path
|
||||
style="fill:#2b8a56;fill-opacity:1;stroke:none;stroke-width:5.30954;stroke-linejoin:round;paint-order:stroke fill markers"
|
||||
d="m 1532.9179,475.61949 c -8.4753,12.31745 -19.4052,36.74105 -19.4052,36.74105 0,0 21.0393,16.92902 44.0922,0.0914 0,0 -18.5848,-31.63426 -24.687,-36.83245 z"
|
||||
id="path1-0-41-8"
|
||||
sodipodi:nodetypes="cccc" /></g></g><text
|
||||
xml:space="preserve"
|
||||
style="font-size:18.6667px;font-family:'Franklin Gothic Medium';-inkscape-font-specification:'Franklin Gothic Medium, ';text-align:center;letter-spacing:0px;text-anchor:middle;opacity:1;fill:#399351;fill-opacity:1;stroke:none;stroke-width:4;stroke-linecap:round;stroke-linejoin:miter;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:stroke fill markers"
|
||||
x="596.26978"
|
||||
y="1831.0868"
|
||||
id="text81"><tspan
|
||||
sodipodi:role="line"
|
||||
id="tspan81"
|
||||
x="596.26978"
|
||||
y="1831.0868" /></text></g></svg>
|
After Width: | Height: | Size: 5.5 KiB |
Loading…
Add table
Reference in a new issue