[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-edu
Subject:    Re: [kde-edu]: Custom Turtle / Re: Kturtle
From:       Niels Slot <nielsslot () gmail ! com>
Date:       2009-05-27 21:11:26
Message-ID: f5f15dc00905271411k6160865fuab78a33a4a575174 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


2009/5/27 Ralf Gesellensetter <ralf.gesellensetter@web.de>

> On Freitag 20 März 2009 07:47:40 Rahim Fakir wrote:
> > Iam new to this, but i like Kturtle.
> > If you can email me samples or source code for Kturtle, so i can
> practice,
> > i'll be glad.
> > Thank you
> >
> > Rahim=Raymond
>
> Hi Rahim,
>
> I hope you found some samples that are published all over - e.g. within the
> manual. On Debian systems, there used to be sample files for KDE 3.5 (can't
> find any on 4.1). Maybe this thread and Google can help you:
>
> http://lists.kde.org/?l=kde-edu-devel&m=119192847026601&w=2
>
> By the way, I found a German FAQ (wikiversity), and there was the question
> how
> to change the turtle "sprite". I don't think it is a image file that you
> can
> replace, but rather believe (without having looked into the source) that
> the
> turtle icon is drawn (using turtle commands). Hence I suggest to enable
> overwriting a system command "drawturtle" in order to replace its original
> appearance.


With the current KTurtle it is, as a matter of fact, a matter of 'just'
replacing an image file. The turtle sprite is loaded out of an SVG file. The
file is called 'turtle.svg' and is in the src directory of KTurtle's source.
The SVG is included in the KTurtle binary, so you'll have to recompile
KTurtle to change the sprite. There's also a grey version, which is used in
the direction chooser dialog.

I can imagine that this isn't the most convient way to change the sprite.
Implementing a 'changesprite' command wouldn't be very difficult. If there
is demand for such a feature, I might consider putting it into KTurtle.

Niels


>
> Regards
> Ralf
>
> _______________________________________________
> kde-edu mailing list
> kde-edu@mail.kde.org
> https://mail.kde.org/mailman/listinfo/kde-edu
>

[Attachment #5 (text/html)]

<div class="gmail_quote">2009/5/27 Ralf Gesellensetter <span dir="ltr">&lt;<a \
href="mailto:ralf.gesellensetter@web.de">ralf.gesellensetter@web.de</a>&gt;</span><br><blockquote \
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt \
0pt 0.8ex; padding-left: 1ex;"> On Freitag 20 März 2009 07:47:40 Rahim Fakir \
wrote:<br> &gt; Iam new to this, but i like Kturtle.<br>
&gt; If you can email me samples or source code for Kturtle, so i can practice,<br>
&gt; i&#39;ll be glad.<br>
&gt; Thank you<br>
&gt;<br>
&gt; Rahim=Raymond<br>
<br>
Hi Rahim,<br>
<br>
I hope you found some samples that are published all over - e.g. within the<br>
manual. On Debian systems, there used to be sample files for KDE 3.5 (can&#39;t<br>
find any on 4.1). Maybe this thread and Google can help you:<br>
<br>
<a href="http://lists.kde.org/?l=kde-edu-devel&amp;m=119192847026601&amp;w=2" \
target="_blank">http://lists.kde.org/?l=kde-edu-devel&amp;m=119192847026601&amp;w=2</a><br>
 <br>
By the way, I found a German FAQ (wikiversity), and there was the question how<br>
to change the turtle &quot;sprite&quot;. I don&#39;t think it is a image file that \
you can<br> replace, but rather believe (without having looked into the source) that \
the<br> turtle icon is drawn (using turtle commands). Hence I suggest to enable<br>
overwriting a system command &quot;drawturtle&quot; in order to replace its \
original<br> appearance.</blockquote><div> </div><div>With the current KTurtle it is, \
as a matter of fact, a matter of &#39;just&#39; replacing an image file. The turtle \
sprite is loaded out of an SVG file. The file is called &#39;turtle.svg&#39; and is \
in the src directory of KTurtle&#39;s source. The SVG is included in the KTurtle \
binary, so you&#39;ll have to recompile KTurtle to change the sprite. There&#39;s \
also a grey version, which is used in the direction chooser dialog.<br> <br>I can \
imagine that this isn&#39;t the most convient way to change the sprite. Implementing \
a &#39;changesprite&#39; command wouldn&#39;t be very difficult. If there is demand \
for such a feature, I might consider putting it into KTurtle.<br> \
<br>Niels<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid \
rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br> <br>
Regards<br>
Ralf<br>
<br>
_______________________________________________<br>
kde-edu mailing list<br>
<a href="mailto:kde-edu@mail.kde.org">kde-edu@mail.kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kde-edu" \
target="_blank">https://mail.kde.org/mailman/listinfo/kde-edu</a><br> \
</blockquote></div><br>



_______________________________________________
kde-edu mailing list
kde-edu@mail.kde.org
https://mail.kde.org/mailman/listinfo/kde-edu


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic