[squeakland] [etoys-dev] How can I color one character of text?

Steve Thomas sthomas1 at gosargon.com
Thu Mar 14 20:58:17 EDT 2013


Steve Thomas<http://www.youtube.com/user/sthomastt?feature=em-share_video_user>
has
shared a video with you on YouTube
Thank you Bert!!!
         <http://www.youtube.com/watch?v=fm0ZG7rOX2M&feature=em-share_video_user>
Word Balloons in Etoys
<http://www.youtube.com/watch?v=fm0ZG7rOX2M&feature=em-share_video_user>
by Steve Thomas<http://www.youtube.com/user/sthomastt?feature=em-share_video_user>
Teachers and Students can enter a list of words to practice typing, word
and letter recognition.
Help center <http://support.google.com/youtube/> • Email
options<http://www.youtube.com/account_notifications?feature=em-share_video_user>
 • Report spam<http://www.youtube.com/email_spam?v=1a&c=cGPZIB4swwbpICNhBVyoE9ta0uEuqwXB3IHhYCkxkUkYexAmNgUhHCAUMJPKWolK0-11otHt6ONzRzcesTdK2rCL6ySzbATxAjE01XXBIoJqsN2rvmG_yYZo56TVscrrnOacR5YseKWMXMtCuClsKZ0WlgMGK0i5_ls_aVqbeVwOEJX5zXf4NL9oVa7oIF3bsde7N8K5cL_qDHq_y5maUbUsCieMGl68>
©2013 YouTube, LLC 901 Cherry Ave, San Bruno, CA 94066

On Thu, Mar 14, 2013 at 8:25 PM, Bert Freudenberg <bert at freudenbergs.de>wrote:

> On 2013-03-15, at 01:05, Steve Thomas <sthomas1 at gosargon.com> wrote:
>
> I am working on a word recognition/typing program in Etoys for Haiti. (and
> anyone else who needs it).
>
> I need to be able to change the color of the character at cursor.
>
> How can I do this?  (squeak code is fine)
>
>
>
>
>
> setColorAtCursor: color
> | m |
> m := self costume renderedMorph.
> m text
> addAttribute: (TextColor color: color)
> from: m cursor
> to: m cursor.
> m changed
>
> - Bert -
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakland.org/pipermail/squeakland/attachments/20130314/2b70e539/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-14.png
Type: image/png
Size: 38203 bytes
Desc: not available
URL: <http://lists.squeakland.org/pipermail/squeakland/attachments/20130314/2b70e539/attachment-0001.png>


More information about the squeakland mailing list