[Etoys] [Fix] Horizontal and Vertical Flips

Scott Wallace scott.wallace at squeakland.org
Mon Nov 12 19:36:23 EST 2007


Hi, Subbu,

If the sketch has been rotated, this patch seems to produce incorrect  
results.

For example, given the following sketch, which has been somewhat  
rotated:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedGraphic.tiff
Type: image/tiff
Size: 37806 bytes
Desc: not available
Url : http://lists.laptop.org/pipermail/etoys/attachments/20071112/a1319b91/attachment-0002.tiff 
-------------- next part --------------



... then after applying your "flip horizontal" we get:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedGraphic.tiff
Type: image/tiff
Size: 36496 bytes
Desc: not available
Url : http://lists.laptop.org/pipermail/etoys/attachments/20071112/a1319b91/attachment-0003.tiff 
-------------- next part --------------




So I think that something more sophisticated than just flipping the  
unrotated bitmap and then applying the same rotation to it, which is  
what your patch does, is called for here.


Cheers,

  -- Scott


On Nov 9, 2007, at 11:10 AM, subbukk wrote:

> Hi,
>
> Attached is a patch that adds horizontal and vertical flip commands  
> to the
> viewer along with some fixes to the corresponding player commands.
>
> It should now be easy to create sketches with mirror symmetry.
>
> Subbu
> <flipfixes.2.cs>_______________________________________________
> Etoys mailing list
> Etoys at lists.laptop.org
> http://lists.laptop.org/listinfo/etoys



More information about the Etoys mailing list