I have to create a paint program using TURING LANGUAGE. Our teacher wants us to use the following loop form:-
LOOP
IF user clicks on one of the drawing tools THEN
set ObjectType to the appropriate number
ELSIF the user clicks on one of the colour buttons THEN
set ColourNum to the appropriate number
ELSIF the user clicks on the canvas area THEN
remember the mouse co-ordinates
ELSIF the user drags the mouse on the canvas area THEN
erase and draw the object, depending on the value of the ObjectType
ELSIF the user releases the button while on the canvas area THEN
draw the object, depending on the value of ObjectType
END IF
END LOOP
Before doing that we have to create integer variables for the program: ObjectType and ColourNum
When the user clicks one of the drawing tools, set ObjectType to a different number. For example: 1 for pencil, 2 for line, 3 for box and 4 for fill box, etc
Similarly, when the user clicks on one of the colours set ColourNum to a specified number. For example, 0-white, 1-blue, etc
SO!.. Basically I dont understand how to assign these variables and correctly put them in the format he has given us, other than that Ive figured out how to draw lines and make buttons and most of the other procedures.. SO PLEASE HELP ME! Its worth alot, and our teacher isn't willing to help much. :S Thanks .TURING: How to Create a Paint Program with the following directions in Turing. ?
i have never heard of the program Turning Language. You might try going to that website and get help from the people who designed the program.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment