Sunday, October 17, 2010

Programmable Rug Weaver



The programmable version of RugWeaver is on it's way. I have converted the classes to be just 'Needle', and 'Icon'. Icon is transparent to the user and does the work of drawing the individual shapes on the canvas for 'Needle'. The picture shows Rug Weaver after programmatically creating and 'Begin'ing a rectangle.

I have noticed that the Control codelets have difficulty in certain areas. For example, if you look where the codelet box 'Move Left 1()' is, it was extremely difficult to get that codelet in that spot. That is also where I would have put 'Move Down 1()' however I could not get the 'green bar' to insert it there once the 'Move Left 1' was in. Notice that I have used a 'Repeat While' with a nested 'Repeat N', very nice to have iteration working so well!

It of course is no where near perfect, however it is very satisfying to have the program create a shape in the way it was intended to.

No comments:

Post a Comment