[plt-scheme] stars in image teachpack

From: Robby Findler (robby at cs.uchicago.edu)
Date: Thu Feb 28 11:53:51 EST 2008

But a 3 pointed star is just a triangle (unless the sizes are the
same, in which case it is a hexagon, as you point out).

How about I just add a regular polygon function?


On Thu, Feb 28, 2008 at 10:36 AM, David Van Horn
<dvanhorn at cs.brandeis.edu> wrote:
> The star procedure currently checks that the given number of points are
>  in the real[!?] range (3,10000).  I wonder if this could be relaxed to
>  (2,10000).
>  A three pointed star makes sense to me and removed the check doesn't
>  cause any code to crash when constructing these stars.
>  Moreover, star then becomes very useful for generating regular
>  (even-sided) polygons.  In particular, I want to be able to do:
>    (define (hexagon size mode color)
>      (star 3 size size mode color))
>  The real restriction is a bug; making a star with 4.2 points causes
>  DrScheme to loop.
>  David
>  _________________________________________________
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme

Posted on the users mailing list.