Having the testxy function draw diamonds was one thing, but I knew it wasn't really exercising the full range of major-minor combinations. In that case, since the scanner carriage was 11x higher resolution than the printer carriage, it really was only drawing x-major, y-minor vectors.
So, I added two functions: star and circle. star=n would draw an n-pointed star using a distance specified by the csn=value command. The inner radius of the star was fixed. The circle command would take a value representing the number of arcs to draw starting at 0 radians, so circle=4 would produce a square (diamond), circle=8 would give an octagon, and so on.
Results:
|
Frankenplotter drawing circles and stars |
You'll note a couple of things here. First, there's a line going from the center out to x=radius,y=0. That's because there's no pen up/down function yet. Second, the circle doesn't close. That's because of sloppiness in the pen holder -- lack of rigidity.
Just to be sure I was exercising the x=minor,y=major case, I had Serial.print commands telling me what was going on.
No comments:
Post a Comment