[Squeakland] The clock face - Panel discussion: Can the American
Mind ...
Karl
karl.ramberg at comhem.se
Mon Dec 3 04:19:23 PST 2007
Etoys is about piecing together stuff.
Any Player have a heading so you can make scripts like the attached picture.
Yoshiki Ohshima made this project
http://dev.laptop.org/~yoshiki/etoys/Clock.004.pr
Karl
=
Tony Forster wrote:
>>> My mental model for arithmetic is a clock face,
>
> The clock face is an interesting programming challenge for languages =
> like etoys, Scratch and Game Maker which provide good graphics =
> support. It provides a good context for problem solving and exploring =
> trigonometry. See a clock at =
> http://www.schoolgamemaker.rupert.id.au/morethan.htm programmed with =
> Game Maker.
>
> It is worth considering what kids would gain from such an exercise and =
> how the features of the various languages would affect the learning. =
> How do the languages compare for depth of learning and ease of use =
> (engagement)? It is only through considering these questions that =
> Squeak can be made as good as it can be.
>
> Anybody want to create a clock in etoys or Scratch for comparison? =
> Here is the Game Maker code
> draw_circle(200,200,130,true)
>
> x2=3D200+100*sin(2*pi*current_second/60)
>
> y2=3D200-100*cos(2*pi*current_second/60)
>
> draw_line(200,200,x2,y2)
>
> x2=3D200+100*sin(2*pi*current_minute/60)
>
> y2=3D200-100*cos(2*pi*current_minute/60)
>
> draw_line(200,200,x2,y2)
>
> x2=3D200+50*sin(2*pi*(current_hour+current_minute/60)/12)
>
> y2=3D200-50*cos(2*pi*(current_hour+current_minute/60)/12)
>
> draw_line(200,200,x2,y2)
>
> for(i=3D0; i<12; i+=3D1)
>
> {
>
> x1=3D200+110*sin(2*pi*(i)/12)
>
> y1=3D200-110*cos(2*pi*(i)/12)
>
> x2=3D200+125*sin(2*pi*(i)/12)
>
> y2=3D200-125*cos(2*pi*(i)/12)
>
> draw_line(x1,y1,x2,y2)
>
> }
>
>
> _______________________________________________
> Squeakland mailing list
> Squeakland at squeakland.org
> http://squeakland.org/mailman/listinfo/squeakland
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clock.png
Type: image/png
Size: 8983 bytes
Desc: not available
Url : http://squeakland.org/pipermail/squeakland/attachments/20071203/e5d9c=
1d0/clock.png
More information about the Squeakland
mailing list