Git commit ebc9393b85f8b890ae7b00608ecd66e6ee17391a by Mohammed Ayman. Committed on 25/09/2026 at 18:41. Pushed by kbkmde into branch 'master'.
adding tools->Change Sprite M +13 -0 doc/using-kturtle.docbook M +12 -0 src/canvas.cpp M +1 -0 src/canvas.h M +9 -0 src/kturtleui.rc M +70 -0 src/mainwindow.cpp M +2 -0 src/mainwindow.h M +4 -0 src/resources.qrc M +2 -2 src/sprite.cpp M +1 -1 src/sprite.h A +159 -0 src/sprites/ant.svg A +145 -0 src/sprites/crab.svg A +122 -0 src/sprites/nearly_a_turtle.svg A +85 -0 src/sprites/pen.svg https://invent.kde.org/education/kturtle/-/commit/ebc9393b85f8b890ae7b00608ecd66e6ee17391a diff --git a/doc/using-kturtle.docbook b/doc/using-kturtle.docbook index 7b97d33..05b7af1 100644 --- a/doc/using-kturtle.docbook +++ b/doc/using-kturtle.docbook @@ -433,6 +433,19 @@ <listitem><para>This action opens the color picker dialog.</para></listitem> </varlistentry> </variablelist> + <variablelist> + <anchor id="tools-change-icon" /> + <varlistentry> + <term><menuchoice> + <guimenu>Tools</guimenu> + <guimenuitem>Change Icon…</guimenuitem> + </menuchoice></term> + <listitem> + <para>This action opens a list that contains some predefined icons, and a <guimenuitem>Choose Custom Icon…</guimenuitem> action that lets you pick your own <literal>.svg</literal> file to use as an icon.</para> + <para>For more Icons see <ulink url="https://freesvg.org">freesvg.org</ulink> or <ulink url="https://openclipart.org/">openclipart.org</ulink>.</para> + </listitem> + </varlistentry> + </variablelist> </sect2> <sect2 id="the-setting-menu"> diff --git a/src/canvas.cpp b/src/canvas.cpp index feacacf..ef2099b 100644 --- a/src/canvas.cpp +++ b/src/canvas.cpp @@ -264,4 +264,16 @@ void Canvas::saveAsSvg(const QString &title, const QString &fileName) p.end(); } +void Canvas::setSprite(const QString &spriteSVGFilePath, const qreal &scale) +{ + _scene->removeItem(turtle); + delete turtle; + turtle = new Sprite(spriteSVGFilePath); + turtle->setScale(scale); + turtle->setZValue(kTurtleZValue); + _scene->addItem(turtle); + initValues(); + update(); +} + #include "moc_canvas.cpp" diff --git a/src/canvas.h b/src/canvas.h index 7f1cded..fa69569 100644 --- a/src/canvas.h +++ b/src/canvas.h @@ -86,6 +86,7 @@ public Q_SLOTS: void getDirection(double &value); void getX(double &value); void getY(double &value); + void setSprite(const QString &spriteSVGFilePath, const qreal &scale = 1.0); protected: void resizeEvent(QResizeEvent *event) override; diff --git a/src/kturtleui.rc b/src/kturtleui.rc index 3e9c787..5d25501 100644 --- a/src/kturtleui.rc +++ b/src/kturtleui.rc @@ -52,6 +52,15 @@ <Menu name="tools"><text>&Tools</text> <Action name="direction_chooser" /> <Action name="color_picker" /> + <Menu name ="changeSprite"><text>&Change Icon</text> + <Action name="kturtleSVG" /> + <Action name="KturtleGraySVG" /> + <Action name="turtleSVG" /> + <Action name="crabSVG" /> + <Action name="antSVG" /> + <Action name="penSVG" /> + <Action name="change_sprite" /> + </Menu> </Menu> <Menu name="settings"><text>&Settings</text> <Menu name="language"><text>&Script Language</text> diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index aa3e25c..cc54c60 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -339,6 +339,56 @@ void MainWindow::setupActions() a->setWhatsThis(i18n("Color Picker: Show the color picker dialog")); connect(a, &QAction::triggered, this, &MainWindow::showColorPicker); + // Change Icon… list options + a = new QAction(i18n("kturtle"), this); + a->setIcon(QIcon(QStringLiteral(":turtle.svg"))); + actionCollection()->addAction(QStringLiteral("kturtleSVG"), a); + connect(a, &QAction::triggered, [this]() { + MainWindow::setSprite(QStringLiteral(":turtle.svg")); + }); + + // sprite choices + a = new QAction(i18n("kturtle gray"), this); + a->setIcon(QIcon(QStringLiteral(":turtle_grey.svg"))); + actionCollection()->addAction(QStringLiteral("KturtleGraySVG"), a); + connect(a, &QAction::triggered, [this]() { + MainWindow::setSprite(QStringLiteral(":turtle_grey.svg")); + }); + + a = new QAction(i18n("turtle"), this); + a->setIcon(QIcon(QStringLiteral(":sprites/nearly_a_turtle.svg"))); + actionCollection()->addAction(QStringLiteral("turtleSVG"), a); + connect(a, &QAction::triggered, [this]() { + MainWindow::setSprite(QStringLiteral(":sprites/nearly_a_turtle.svg")); + }); + + a = new QAction(i18n("crab"), this); + a->setIcon(QIcon(QStringLiteral(":sprites/crab.svg"))); + actionCollection()->addAction(QStringLiteral("crabSVG"), a); + connect(a, &QAction::triggered, [this]() { + MainWindow::setSprite(QStringLiteral(":sprites/crab.svg")); + }); + + a = new QAction(i18n("ant"), this); + a->setIcon(QIcon(QStringLiteral(":sprites/ant.svg"))); + actionCollection()->addAction(QStringLiteral("antSVG"), a); + connect(a, &QAction::triggered, [this]() { + MainWindow::setSprite(QStringLiteral(":sprites/ant.svg")); + }); + + a = new QAction(i18n("pen"), this); + a->setIcon(QIcon(QStringLiteral(":sprites/pen.svg"))); + actionCollection()->addAction(QStringLiteral("penSVG"), a); + connect(a, &QAction::triggered, [this]() { + MainWindow::setSprite(QStringLiteral(":sprites/pen.svg"), 2.0); + }); + + a = new QAction(i18n("Choose Custom Icon…"), this); + actionCollection()->addAction(QStringLiteral("change_sprite"), a); + a->setStatusTip(i18n("Choose an Icon for the turtle")); + a->setWhatsThis(i18n("Choose an Icon for the turtle")); + connect(a, &QAction::triggered, this, &MainWindow::changeSprite); + // Settings menu action a = new QAction(i18n("Show &Editor"), this); actionCollection()->addAction(QStringLiteral("show_editor"), a); @@ -1051,4 +1101,24 @@ void MainWindow::slotMessageDialog(const QString &text) run(); } +void MainWindow::changeSprite() +{ + QString svgSpritepath = QFileDialog::getOpenFileUrl(this, i18n("Choose Custom Icon"), QUrl(), QStringLiteral("SVG Image(*.svg)")).path(); + QSvgRenderer svgChecker = QSvgRenderer(svgSpritepath); + if (svgChecker.isValid()) { + canvas->setSprite(svgSpritepath); + } else if (!svgSpritepath.isEmpty()) { + QMessageBox *msgBox = new QMessageBox(this); + msgBox->setWindowTitle(QStringLiteral("Error")); + msgBox->setText(QStringLiteral("Only SVG Files supported")); + msgBox->setAttribute(Qt::WA_DeleteOnClose); + msgBox->open(); + } +}; + +void MainWindow::setSprite(const QString &spriteSVGFilePath, const qreal &scale) +{ + canvas->setSprite(spriteSVGFilePath, scale); +} + #include "moc_mainwindow.cpp" diff --git a/src/mainwindow.h b/src/mainwindow.h index 47d704c..ebead9a 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -139,6 +139,8 @@ private: void updateExamplesMenu(); void updateLanguagesMenu(); void toggleGuiFeedback(bool b); + void changeSprite(); + void setSprite(const QString &spriteSVGFilePath, const qreal &scale = 1.0); Canvas *canvas; Console *console; diff --git a/src/resources.qrc b/src/resources.qrc index 2ba57be..93add63 100644 --- a/src/resources.qrc +++ b/src/resources.qrc @@ -4,5 +4,9 @@ <qresource> <file>turtle.svg</file> <file>turtle_grey.svg</file> + <file>sprites/nearly_a_turtle.svg</file> + <file>sprites/crab.svg</file> + <file>sprites/ant.svg</file> + <file>sprites/pen.svg</file> </qresource> </RCC> diff --git a/src/sprite.cpp b/src/sprite.cpp index 9f805ff..d700dc8 100644 --- a/src/sprite.cpp +++ b/src/sprite.cpp @@ -12,8 +12,8 @@ const int SPRITE_SIZE = 30; -Sprite::Sprite() - : QGraphicsSvgItem(QStringLiteral(":turtle.svg")) +Sprite::Sprite(const QString &spriteSVGFilePath) + : QGraphicsSvgItem(spriteSVGFilePath) { m_angle = 0; m_speed = 0; diff --git a/src/sprite.h b/src/sprite.h index c3a3b81..e4b1f52 100644 --- a/src/sprite.h +++ b/src/sprite.h @@ -14,7 +14,7 @@ class Sprite : public QGraphicsSvgItem Q_OBJECT public: - Sprite(); + Sprite(const QString &spriteSVGFilePath = QStringLiteral(":turtle.svg")); double angle() const { diff --git a/src/sprites/ant.svg b/src/sprites/ant.svg new file mode 100644 index 0000000..b1ae028 --- /dev/null +++ b/src/sprites/ant.svg @@ -0,0 +1,159 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> + +<svg + width="100.05846mm" + height="123.98309mm" + viewBox="0 0 378.17373 468.59752" + version="1.1" + id="svg1" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns="http://www.w3.org/2000/svg" + xmlns:svg="http://www.w3.org/2000/svg"> + <defs + id="defs1"> + <marker + markerWidth="0.52499998" + markerHeight="0.99999994" + refX="0" + refY="0" + orient="auto-start-reverse" + id="CapTriangle" + viewBox="0 0 0.525 1" + style="overflow:visible" + preserveAspectRatio="xMidYMid"> + <path + style="fill:context-stroke;stroke-linecap:butt" + d="M 0,-1 1,0 0,1 -0.05,0 Z" + id="path61" + transform="scale(0.5)" /> + </marker> + <filter + style="color-interpolation-filters:sRGB" + id="filter16" + x="0" + y="0" + width="1" + height="1"> + <feBlend + mode="luminosity" + id="feBlend16" /> + </filter> + </defs> + <g + id="layer1" + transform="translate(-198.23159,-332.02694)"> + <g + id="g46"> + <path + style="fill:#492200;fill-opacity:0.996078;fill-rule:nonzero;stroke:none;stroke-width:7.55906;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:0.996078;marker-end:url(#CapTriangle);paint-order:normal" + d="m 324.42533,561.95375 -65.95954,47.62299 -0.41613,0.88081 c -35.6543,75.46825 -32.23696,77.08274 -32.23696,77.08274 0,0 3.41734,1.61449 39.07165,-73.85375 l 3.5e-4,-7.6e-4 -1.2049,1.44981 65.1704,-47.05323 z" + id="path40" /> + <path + style="fill:#492200;fill-opacity:0.996078;fill-rule:nonzero;stroke:none;stroke-width:7.55906;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:0.996078;marker-end:url(#CapTriangle);paint-order:normal" + d="m 325.79763,561.33308 -64.81028,14.77603 -0.80663,0.91479 c -41.20754,46.73299 -38.37268,49.23267 -38.37268,49.23267 0,0 2.83486,2.49968 44.0424,-44.23331 l 4.1e-4,-4.7e-4 -1.99473,1.18529 63.62178,-14.50506 z" + id="path42" + transform="rotate(20.669329,398.38152,527.28197)" /> + <path + style="fill:#492200;fill-opacity:0.996078;fill-rule:nonzero;stroke:none;stroke-width:7.55894;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:0.996078;marker-end:url(#CapTriangle);paint-order:normal" + d="m 324.93006,561.64638 -62.68874,31.75091 -0.55719,1.13868 c -31.75337,64.8919 -28.35854,66.55308 -28.35854,66.55308 0,0 3.39483,1.66118 35.1482,-63.23072 l 3.2e-4,-6.5e-4 -1.68713,1.71049 61.55848,-31.17845 z" + id="path44" + transform="matrix(0.97337264,-0.22928396,-0.2292545,-0.97338479,135.27242,1131.6496)" /> + </g> + <use + x="0" + y="0" + xlink:href="#g46" + id="use53" + transform="matrix(-0.99999826,0,0,1,774.63659,-1.4314115e-5)" /> + <ellipse + style="fill:#f06d00;fill-opacity:0.996078;stroke:none;stroke-width:5.66929;stroke-dasharray:none;stroke-opacity:0.996078" + id="path1" + cx="387.31857" + cy="680.27228" + rx="105.5666" + ry="117.51753" /> + <path + id="ellipse21" + style="fill:#cc5c00;fill-opacity:0.996078;stroke:#803e00;stroke-width:2.83465;stroke-dasharray:none;stroke-opacity:0.996078" [suppressed due to size limit] + <path + id="path66" + style="fill:#ffc799;fill-opacity:0.266434;stroke:none;stroke-width:7.55906;stroke-linecap:butt;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:0.996078;paint-order:normal" + d="m 461.87892,597.07814 c 0,0 12.36986,44.50283 15.21484,67.33789 3.05496,24.52041 1.9047,74.10161 1.9043,74.11914 a 105.5666,117.51753 0 0 0 13.88672,-58.26367 105.5666,117.51753 0 0 0 -31.00586,-83.19336 z" /> + <path + id="ellipse3" + style="fill:#000000;fill-opacity:0.0663063;stroke:none;stroke-width:5.28795;stroke-dasharray:none;stroke-opacity:0.996078;filter:url(#filter16)" [suppressed due to size limit] + <ellipse + style="fill:none;fill-opacity:0.996078;stroke:#803e00;stroke-width:5.66929;stroke-dasharray:none;stroke-opacity:0.996078" + id="ellipse38" + cx="387.31857" + cy="680.27228" + rx="105.5666" + ry="117.51753" /> + <ellipse + style="fill:#f06d00;fill-opacity:0.996078;stroke:none;stroke-width:5.66929;stroke-dasharray:none;stroke-opacity:0.996078" + id="path2" + cx="387.31857" + cy="533.10486" + rx="69.523621" + ry="65.387474" /> + <path + id="path65" + style="fill:#ffc799;fill-opacity:0.266434;stroke:none;stroke-width:7.55906;stroke-linecap:butt;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:0.996078;paint-order:normal" + d="m 447.74806,506.54298 c 3.95513,16.51785 4.26769,33.59601 0.93945,51.23438 l 3.06836,-0.12305 a 69.523621,65.387474 0 0 0 5.08594,-24.54883 69.523621,65.387474 0 0 0 -5.24805,-24.92187 69.523621,65.387474 0 0 0 0,-0.002 z" /> + <path + id="path3" + style="fill:#000000;fill-opacity:0.0663063;stroke:none;stroke-width:5.36702;stroke-dasharray:none;stroke-opacity:0.996078;filter:url(#filter16)" [suppressed due to size limit] + transform="matrix(0.97755767,0,0,1,8.6868915,0)" /> + <ellipse + style="fill:none;fill-opacity:0.996078;stroke:#803e00;stroke-width:5.66929;stroke-dasharray:none;stroke-opacity:0.996078" + id="ellipse39" + cx="387.31857" + cy="533.10486" + rx="69.523621" + ry="65.387474" /> + <path + style="fill:#cc5c00;fill-opacity:0.996078;stroke:none;stroke-width:2.43288;stroke-linecap:butt;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:0.996078;paint-order:normal" + d="m 378.43606,363.4961 c -7.49569,-7.45335 -4.46907,-16.35112 1.00503,-22.09238 l -0.48974,3.47603 1.33399,1.95757 -2.61396,2.90084 2.28266,4.1364 -1.44832,3.8931 3.58002,4.37848 z" + id="path60" /> + <path + style="fill:#cc5c00;fill-opacity:0.996078;stroke:none;stroke-width:2.43288;stroke-linecap:butt;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:0.996078;paint-order:normal" + d="m 396.20624,363.4961 c 7.49569,-7.45335 4.46907,-16.35112 -1.00503,-22.09238 l 0.48974,3.47603 -1.33399,1.95757 2.61396,2.90084 -2.28266,4.1364 1.44832,3.8931 -3.58002,4.37848 z" + id="path59" /> + <path + id="ellipse2" + style="fill:#f06d00;fill-opacity:0.996078;stroke:none;stroke-width:5.66929;stroke-dasharray:none;stroke-opacity:0.996078" [suppressed due to size limit] + <path + id="path64" + style="mix-blend-mode:luminosity;fill:#ffc799;fill-opacity:0.266434;stroke:none;stroke-width:7.55906;stroke-linecap:butt;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:0.996078;paint-order:normal" + d="m 425.12306,375.60548 -15.8854,-5.10194 c 0,0 33.98009,31.19224 44.59631,51.17336 8.12702,15.29613 13.35549,50.21764 13.35549,50.21764 2.97556,-5.27824 4.87865,-10.80959 5.52539,-16.41406 0.20273,-1.43581 0.33007,-2.86208 0.33008,-4.26758 0,-21.80388 -19.5336,-57.1438 -47.92187,-75.60742 z" /> + <path + id="path63" + style="fill:#000000;fill-opacity:0.137262;stroke:none;stroke-width:7.55906;stroke-linecap:butt;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:0.996078;paint-order:normal" [suppressed due to size limit] + <path + id="path39" + style="display:inline;fill:none;fill-opacity:0.996078;stroke:#803e00;stroke-width:5.66929;stroke-dasharray:none;stroke-opacity:0.996078" [suppressed due to size limit] + <path + id="rect2" + style="fill:#663400;fill-opacity:0.996078;stroke:none;stroke-width:6.74924;stroke-dasharray:none;stroke-opacity:0.996078" + d="m 364.43638,386.77149 c -1.40945,0 -2.54492,1.13352 -2.54492,2.54297 v 10.17774 c 0,1.40945 1.13547,2.54297 2.54492,2.54297 h 1.14453 c 1.40946,0 2.54493,-1.13352 2.54493,-2.54297 v -10.17774 c 0,-1.40945 -1.13547,-2.54297 -2.54493,-2.54297 z m 44.625,0 c -1.40945,0 -2.54297,1.13352 -2.54297,2.54297 v 10.17774 c 0,1.40945 1.13352,2.54297 2.54297,2.54297 h 1.14453 c 1.40946,0 2.54493,-1.13352 2.54493,-2.54297 v -10.17774 c 0,-1.40945 -1.13547,-2.54297 -2.54493,-2.54297 z" /> + <g + id="g38" + transform="translate(-6.7375083)"> + <path + id="path36" + style="fill:none;fill-rule:evenodd;stroke:#4d2200;stroke-width:2.41902;stroke-linecap:round;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1;paint-order:normal" [suppressed due to size limit] + <path + id="path37" + style="fill:none;fill-rule:evenodd;stroke:#4d2200;stroke-width:2.3803;stroke-linecap:round;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1;paint-order:normal" [suppressed due to size limit] + </g> + </g> +</svg> diff --git a/src/sprites/crab.svg b/src/sprites/crab.svg new file mode 100644 index 0000000..fdea74a --- /dev/null +++ b/src/sprites/crab.svg @@ -0,0 +1,145 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> + +<svg + width="176.89645mm" + height="118.82394mm" + viewBox="0 0 668.58504 449.09838" + version="1.1" + id="svg1" + xml:space="preserve" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns="http://www.w3.org/2000/svg" + xmlns:svg="http://www.w3.org/2000/svg"><defs + id="defs1"><linearGradient + id="linearGradient25"><stop + style="stop-color:#ff4d00;stop-opacity:1;" + offset="0" + id="stop25" /><stop + style="stop-color:#f24300;stop-opacity:1;" + offset="1" + id="stop26" /></linearGradient><linearGradient + id="linearGradient91"><stop + style="stop-color:#942805;stop-opacity:1;" + offset="0" + id="stop91" /><stop + style="stop-color:#ff4d00;stop-opacity:1;" + offset="1" + id="stop92" /></linearGradient><radialGradient + xlink:href="#linearGradient91" + id="radialGradient92" + cx="604.79181" + cy="467.43588" + fx="604.79181" + fy="467.43588" + r="100.95119" + gradientTransform="matrix(-0.33004177,0.57164993,-0.59599267,-0.34409653,1082.9869,282.41786)" + gradientUnits="userSpaceOnUse" + spreadMethod="pad" /><radialGradient + xlink:href="#linearGradient25" + id="radialGradient26" + cx="466.34866" + cy="478.22034" + fx="466.34866" + fy="478.22034" + r="21.906691" + gradientTransform="matrix(-0.2734804,0.37193358,-0.77039536,-0.56646699,944.32816,584.60356)" + gradientUnits="userSpaceOnUse" /><radialGradient + xlink:href="#linearGradient91" + id="radialGradient39" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(-0.66008354,1.1432999,-1.1919853,-0.68819306,2467.924,813.10594)" + cx="604.79181" + cy="467.43588" + fx="604.79181" + fy="467.43588" + r="100.95119" + spreadMethod="pad" /></defs><g + id="layer1" + transform="translate(-61.599087,-355.46215)"><g + id="g84" + transform="translate(0.06716711)" + style="fill:url(#radialGradient92);fill-opacity:1"><path + style="display:inline;fill:#e62e00;fill-opacity:1;stroke:#802900;stroke-width:2.83465;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:normal" [suppressed due to size limit] + id="path75" /><path + id="path39" + style="display:inline;fill:url(#radialGradient39);fill-opacity:1;stroke-width:2" [suppressed due to size limit] + style="display:inline;fill:none;stroke:#802900;stroke-width:2.83465;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:normal" [suppressed due to size limit] + id="path8" /><path + id="path6" + style="display:inline;mix-blend-mode:normal;fill:#000000;fill-opacity:0.7;stroke:none;stroke-width:2.83465;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:normal" [suppressed due to size limit] + id="path34" + style="display:inline;fill:#000000;fill-opacity:0.2;stroke:none;stroke-width:2.83465;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:normal" + d="m 518.60472,501.05079 c -2.71081,0.94164 -5.34053,1.69443 -7.87305,2.22461 l 36.26368,52.19141 c 2.68732,-1.39681 5.36677,-2.80457 8.02929,-4.23633 -7.45512,-14.38865 -19.3413,-33.45249 -36.41992,-50.17969 z" /><path + style="display:inline;fill:none;fill-opacity:1;stroke:#802900;stroke-width:2.83465;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:normal" [suppressed due to size limit] + id="path5" /><path + id="path26" + style="opacity:1;fill:#e62e00;fill-opacity:1;stroke:none;stroke-width:2.83465;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1" [suppressed due to size limit] + transform="translate(-0.06716711)" /><path + id="path29" + style="display:inline;opacity:1;fill:#ff4d00;fill-opacity:1;stroke:none;stroke-width:2.83465;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1" [suppressed due to size limit] + transform="translate(-0.06716711)" /><path + id="path36" + style="opacity:1;fill:#000000;fill-opacity:0.2;stroke:none;stroke-width:2.83465;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1" [suppressed due to size limit] + id="path30" + style="opacity:1;fill:none;fill-opacity:1;stroke:#802900;stroke-width:2.83465;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1" [suppressed due to size limit] + transform="translate(-0.06716711)" /><path + style="fill:#e62e00;fill-opacity:1;stroke:none;stroke-width:2.83465;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1" [suppressed due to size limit] + id="path15" + transform="translate(-0.06716711)" /><path + id="path16" + style="fill:#ff4d00;fill-opacity:1;stroke:none;stroke-width:2.83465;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1" [suppressed due to size limit] + transform="translate(-0.06716711)" /><path + id="path31" + style="display:inline;fill:#000000;fill-opacity:0.199462;stroke:none;stroke-width:2.83465;stroke-linejoin:round;stroke-opacity:1" [suppressed due to size limit] + transform="matrix(1.0569123,0,0,1.0569123,-22.598211,-32.234664)" /><path + style="display:inline;fill:none;fill-opacity:1;stroke:#802900;stroke-width:2.83465;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1" [suppressed due to size limit] + id="path17" + transform="translate(-0.06716711)" /></g><use + x="0" + y="0" + xlink:href="#g84" + id="use84" + transform="matrix(-1,0,0,1,791.78321,0)" /><path + id="rect72" + style="display:inline;fill:#e62e00;fill-opacity:1;stroke:none;stroke-width:2.83465;stroke-linejoin:round;stroke-opacity:1" [suppressed due to size limit] + id="path12" + style="display:inline;fill:#ff4d00;fill-opacity:1;stroke:none;stroke-width:2.83465;stroke-linejoin:round;stroke-opacity:1" [suppressed due to size limit] + id="path19" + style="display:inline;opacity:0.5;fill:#e53900;fill-opacity:1;stroke:none;stroke-width:2.83465;stroke-linejoin:round;stroke-opacity:1" [suppressed due to size limit] + id="path18" + style="display:inline;fill:none;stroke:#802900;stroke-width:2.83465;stroke-linejoin:round;stroke-opacity:1" [suppressed due to size limit] + id="g71" + transform="translate(0,-3.5585181)"><ellipse + style="display:inline;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.944882;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:normal" + id="path73" + cx="658.0293" + cy="-36.995922" + rx="11.692273" + ry="13.556259" + transform="rotate(48.724914)" /><path + style="fill:url(#radialGradient26);fill-opacity:1;stroke:#802900;stroke-width:2.83465;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:normal" + d="m 431.83682,490.18991 16.89484,-29.95539 c 0.007,13.68784 8.0353,20.59755 24.08413,20.72913 l -21.44806,18.3327" + id="path72" /></g><use + x="0" + y="0" + xlink:href="#g71" + id="use72" + transform="matrix(-1,0,0,1,791.78127,-1.0857787e-8)" /></g></svg> diff --git a/src/sprites/nearly_a_turtle.svg b/src/sprites/nearly_a_turtle.svg new file mode 100644 index 0000000..652405c --- /dev/null +++ b/src/sprites/nearly_a_turtle.svg @@ -0,0 +1,122 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> + +<svg + version="1.0" + x="0.0000000" + y="0.0000000" + width="186.70567" + height="226.13928" + viewBox="0 0 186.70567 226.13928" + id="svg1432" + xml:space="preserve" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns="http://www.w3.org/2000/svg" + xmlns:svg="http://www.w3.org/2000/svg"> + <defs + id="defs1536"><linearGradient + id="linearGradient3"><stop + style="stop-color:#0ccc00;stop-opacity:1;" + offset="0" + id="stop3" /><stop + style="stop-color:#088000;stop-opacity:1;" + offset="1" + id="stop4" /></linearGradient><linearGradient + id="linearGradient4785"> + <stop + style="stop-color:#067a07;stop-opacity:1.0000000" + offset="0.0000000" + id="stop4787" /> + <stop + style="stop-color:#a9eea8;stop-opacity:0.75634515" + offset="1.0000000" + id="stop4789" /> + </linearGradient><linearGradient + x1="-202.46512" + y1="52.046551" + x2="-76.252312" + y2="248.37537" + id="linearGradient4791" + xlink:href="#linearGradient4785" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(1.05731,0,0,1.05731,263.92191,-18.515129)" /><radialGradient + xlink:href="#linearGradient3" + id="radialGradient4" + cx="127.99948" + cy="154.74632" + fx="127.99948" + fy="154.74632" + r="82.60614" + gradientTransform="matrix(1,0,0,0.92119655,-34.24159,-13.341197)" + gradientUnits="userSpaceOnUse" /></defs> + <path [suppressed due to size limit] + style="display:none;overflow:visible;opacity:1;fill:url(#linearGradient4791);fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:5;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + id="path4057" /><path + style="fill:#217200;fill-opacity:1;stroke:none;stroke-width:1.5;stroke-dasharray:none;stroke-opacity:1" + d="m 19.1868,172.8641 c 0,0 -18.41850418,15.38361 -19.17773218,43.17178 -0.394292,14.43131 12.19740618,11.33413 13.21205918,3.52469 2.244102,-17.27208 24.659529,-30.41746 24.659529,-30.41746 z" + id="path33" /><path + style="fill:#217200;fill-opacity:1;stroke:none;stroke-width:1.5;stroke-dasharray:none;stroke-opacity:1" + d="m 167.51887,172.8641 c 0,0 18.41851,15.38361 19.17774,43.17178 0.39429,14.43131 -12.19741,11.33413 -13.21206,3.52469 -2.2441,-17.27208 -24.65953,-30.41746 -24.65953,-30.41746 z" + id="path34" /><path + style="fill:#217200;fill-opacity:1;stroke:none;stroke-width:1.5;stroke-dasharray:none;stroke-opacity:1" + d="m 162.25794,90.902488 c 0,0 18.41851,-15.38361 19.17774,-43.171778 0.39429,-14.43131 -12.19741,-11.33413 -13.21206,-3.52469 -2.2441,17.27208 -24.65953,30.417458 -24.65953,30.417458 z" + id="path36" /><path + style="fill:#217200;fill-opacity:1;stroke:none;stroke-width:1.5;stroke-dasharray:none;stroke-opacity:1" + d="m 25.265292,90.902488 c 0,0 -18.4185092,-15.38361 -19.1777392,-43.171778 -0.39429,-14.43131 12.1974092,-11.33413 13.2120592,-3.52469 2.2441,17.27208 24.65953,30.417458 24.65953,30.417458 z" + id="path37" /><path + style="fill:#217200;fill-opacity:1;stroke:none;stroke-width:1.5;stroke-dasharray:none;stroke-opacity:1" + d="m 88.36351,205.06749 5.23514,16.63771 5.66543,-16.56599 z" + id="path35" /><path + id="path38" + style="fill:#217200;stroke-width:1.15384" [suppressed due to size limit] + transform="matrix(0.66929675,0,0,0.66929675,7.9915238,-1.8075951)" /> +<path + style="display:inline;fill:url(#radialGradient4);stroke:none;stroke-width:5;stroke-dasharray:none;stroke-opacity:1" + d="M 93.9682,53.116653 C 54.479905,52.77669 10.485796,86.195788 11.159386,147.11586 c 0.358162,32.39252 48.607658,57.98427 82.169374,58.18998 33.40483,0.20475 83.18972,-25.14344 83.03491,-58.54854 C 176.08172,85.915828 133.37017,53.455873 93.9682,53.116653 Z" + id="path2" /><g + id="g26" + transform="translate(-34.24159,-25.535742)"><path + style="fill:none;stroke:#066600;stroke-width:1.5;stroke-opacity:1" + d="m 143.20854,200.13096 c -8.94207,0 -17.88414,-10e-6 -26.82621,-10e-6 -4.47103,-7.74406 -8.94207,-15.48811 -13.4131,-23.23217 4.47104,-7.74406 8.94207,-15.48812 13.41311,-23.23218 8.94207,0 17.88413,0 26.8262,0 4.47104,7.74406 8.94207,15.48812 13.41311,23.23218 -4.47104,7.74406 -8.94207,15.48812 -13.41311,23.23218 z" + id="path17" /><path + style="fill:none;stroke:#066600;stroke-width:1.5;stroke-opacity:1" + d="m 138.95417,179.58788 -26.82621,-1e-5 -13.413099,-23.23217 13.413109,-23.23218 h 26.8262 l 13.41311,23.23218 z" + transform="translate(3.709168,-25.964177)" + id="path18" /><path + style="fill:none;stroke:#066600;stroke-width:1.5;stroke-opacity:1" + d="m 138.95417,179.58788 -26.82621,-1e-5 -13.413099,-23.23217 13.413109,-23.23218 h 26.8262 l 13.41311,23.23218 z" + transform="translate(43.939376,-3.0598443)" + id="path19" /><path + style="fill:none;stroke:#066600;stroke-width:1.5;stroke-opacity:1" + d="m 138.95417,179.58788 -26.82621,-1e-5 -13.413099,-23.23217 13.413109,-23.23218 h 26.8262 l 13.41311,23.23218 z" + transform="translate(-36.272836,-2.2825649)" + id="path20" /><path + id="path21" + style="fill:none;stroke:#066600;stroke-width:1.5;stroke-opacity:1" + d="m 136.17271,182.60055 c -1.70374,2.95095 16.19463,-26.24472 16.19463,-26.24472 l -13.41406,-23.23242 h -26.82617 l -13.412109,23.23242" + transform="translate(-35.703282,44.192994)" /><path + id="path22" + style="fill:none;stroke:#066600;stroke-width:1.5;stroke-opacity:1" + d="M 152.36738,156.35622 138.95331,133.1238 h -26.82617 l -13.412108,23.23242 14.686018,24.93097" + transform="translate(44.601374,43.430889)" /><path + id="path23" + style="fill:none;stroke:#066600;stroke-width:1.5;stroke-opacity:1" + d="m 100.91829,160.17257 11.20898,19.41601 h 26.82618 l 13.41406,-23.23242 -13.41406,-23.23242" + transform="translate(-36.769853,-48.738974)" /><path + id="path24" + style="fill:none;stroke:#066600;stroke-width:1.5;stroke-opacity:1" + d="m 111.8775,133.55746 -13.162111,22.79883 13.412111,23.23242 h 26.82617 l 9.91211,-17.16796" + transform="translate(43.802189,-49.496917)" /><path + id="path25" + style="fill:none;stroke:#066600;stroke-width:1.5;stroke-opacity:1" + d="m 138.02797,181.20924 c -1.50614,2.31715 14.33897,-24.85443 14.33897,-24.85443 l -13.41211,-23.23047 h -16.14649" + transform="translate(-76.222406,21.418624)" /><path + id="path26" + style="fill:none;fill-opacity:1;stroke:#066600;stroke-width:1.5;stroke-opacity:1" + d="m 124.514,133.12425 h -12.38672 l -13.412104,23.23242 13.412104,23.23047" + transform="translate(84.433262,19.621842)" /></g><path + style="display:inline;fill:none;stroke:#724800;stroke-width:5;stroke-dasharray:none;stroke-opacity:1" + d="M 93.9682,53.116653 C 54.479905,52.77669 10.485796,86.195788 11.159386,147.11586 c 0.358162,32.39252 48.607658,57.98427 82.169374,58.18998 33.40483,0.20475 83.18972,-25.14344 83.03491,-58.54854 C 176.08172,85.915828 133.37017,53.455873 93.9682,53.116653 Z" + id="path32" /></svg> diff --git a/src/sprites/pen.svg b/src/sprites/pen.svg new file mode 100644 index 0000000..182e570 --- /dev/null +++ b/src/sprites/pen.svg @@ -0,0 +1,85 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> + +<svg + width="89.06929mm" + height="303.45972mm" + viewBox="0 0 336.63985 1146.9343" + version="1.1" + id="svg1" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns="http://www.w3.org/2000/svg" + xmlns:svg="http://www.w3.org/2000/svg"> + <defs + id="defs1" /> + <g + id="layer1" + transform="translate(-457.06093)"> + <g + id="g5"> + <rect + style="fill:#e53b00;fill-opacity:1;stroke:#000000;stroke-width:1.88976;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1" + id="rect1" + width="33.802349" + height="514.07739" + x="734.52106" + y="-162.52017" + transform="rotate(15)" /> + <rect + style="fill:#ff4100;fill-opacity:1;stroke:#000000;stroke-width:1.88976;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1" + id="rect2" + width="11.267449" + height="514.07739" + x="745.78851" + y="-162.52017" + transform="rotate(15)" /> + <path + style="fill:#ffb672;fill-opacity:1;stroke:#000000;stroke-width:1.88976;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1" + d="m 618.50316,529.68627 c 1.17422,-4.38225 10.13573,-4.04098 11.44171,0.83306 4.38691,-4.38691 9.29185,-3.02401 10.88353,2.91623 5.17795,-2.9895 11.56566,0.37041 10.32531,4.99939 l -26.41979,35.03133 z" + id="path2" /> + <path + style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.88976;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1" + d="m 622.93866,560.85207 9.40752,2.52073 -7.61226,10.09348 z" + id="path3" /> + <rect + style="fill:#d9d9d9;fill-opacity:1;stroke:#000000;stroke-width:1.87535;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1" + id="rect3" + width="33.816811" + height="20.532993" + x="734.51379" + y="-181.19708" + transform="rotate(15)" /> + <rect + style="fill:#d9d9d9;fill-opacity:1;stroke:#000000;stroke-width:2.80524;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1" + id="rect4" + width="39.001282" + height="5.9150138" + x="731.92157" + y="-174.06662" + ry="2.9575069" + transform="rotate(15)" /> + <rect + style="fill:#ff73c1;fill-opacity:1;stroke:#000000;stroke-width:1.68979;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1" + id="rect5" + width="33.915966" + height="14.813188" + x="734.41467" + y="-195.91113" + transform="rotate(15)" /> + </g> + <use + x="0" + y="0" + xlink:href="#g5" + id="use5" + transform="matrix(-0.99999186,0,0,1,1250.7553,-3.4459263e-6)" + style="display:none" /> + <use + x="0" + y="0" + xlink:href="#g5" + id="use6" + transform="matrix(0.99999999,0,0,-1.0000028,1.0130708e-5,1146.9342)" + style="display:none" /> + </g> +</svg>
