
124 Make: Robotic Arms
The first several variables in this example are the same as before. However,
things start to get interesting when we begin to define the variable int
circlePoints = 36;. This variable represents how many points we
would like to use to draw our circle. Now, in a perfect world, we would want
360 points, as this would make a very smooth circular shape. But at the
same time, this would be a large number of points to process, so in this
first version, we begin with 36 points. By choosing 36 sets of coordinate
points, we can establish a coordinate point every 10 degrees. As you can
imagine, manually calculating and programming ...