Scratch limits pen drawing strictly into the screen (480 width x 360 height). If someone wants to draw something outside the screen limits then he has to use "line clipping" which means drawing only the visible parts of the object and discard the rest. This algorithm uses line clipping for drawing a star no matter how big. Use Up-Down keys for zooming the star in and out, use Left-Right keys for rotating it.
Feel free to use it in your projects!