I have a square sketch that rolls: Square turn by amt1 Square's x increase by amt2
I'd like to have another sketch - say, a tiny circle, that remains fixed at a corner of the rolling square and traces out a pen path. Is there an elegant Squeak solution for doing this that I'm missing?
--Randy
Just "embed" the little circle into the rectangle. It will draw its pentrails just the way you expect it.
Cheers, - Andreas
Randy Heiland wrote:
I have a square sketch that rolls: Square turn by amt1 Square's x increase by amt2
I'd like to have another sketch - say, a tiny circle, that remains fixed at a corner of the rolling square and traces out a pen path. Is there an elegant Squeak solution for doing this that I'm missing?
--Randy
Squeakland mailing list Squeakland@squeakland.org http://squeakland.org/mailman/listinfo/squeakland
Actually, embedding was one of the first things I tried and, to my surprise, it didn't work for me. But trying it again, I think I know why. I had manually moved the circle's rotation center away from it - to the center of the square (in another futile attempt to do what I wanted), and this, I believe, confuses the 'embed'. Anyway, it works now - thanks! --Randy
-----Original Message----- From: Andreas Raab [mailto:andreas.raab@gmx.de] Sent: Tuesday, December 06, 2005 6:49 PM To: Randy Heiland Cc: 'squeakland.org mailing list' Subject: Re: [Squeakland] rolling square challenge
Just "embed" the little circle into the rectangle. It will draw its pentrails just the way you expect it.
Cheers,
- Andreas
Randy Heiland wrote:
I have a square sketch that rolls: Square turn by amt1 Square's x increase by amt2
I'd like to have another sketch - say, a tiny circle, that remains fixed
at
a corner of the rolling square and traces out a pen path. Is there an elegant Squeak solution for doing this that I'm missing?
--Randy
Squeakland mailing list Squeakland@squeakland.org http://squeakland.org/mailman/listinfo/squeakland
squeakland@lists.squeakfoundation.org