Circle 1: The pinwheel block takes 3 inputs of number of branches, the size of the branches, and the size of the backup. The sprite will draw a pinwheel shape by moving forward and backwards to draw lines depending on the inputs. To make sure the shape closes perfectly, 360 degrees of rotation are divided by the number of branches to make each branch turn an equal amount of degrees.
Circles 2: The polygon block uses the pinwheel block except with 0 back up. If the sprite does not back up it will draw the branch and continue to the next branch without moving backwards. This draws a normal polygon.
No comments:
Post a Comment