V2 is OUT ON MY PAGE!!!! READ ALL! READ ALL! READ ALL! READ ALL! It doesn't detect Invalid Syntax. Fixed in V2 so making the canvas and importing turtle is already in there so all you need to do is start writing. (looks like this): >>> import turtle >>> t = turtle.Pen() ---------------------------INSTRUCTIONS--------------------------- HOW TO START so if t = turtle.Pen(), then you need to start everything with a "t", then add a period. So to start it out it should look like this (don't actually add the >>> (it is in there because the python shell window has it) >>> t. MOVEMENT After you have done that you will need to clarify where you want to go. They would look something like this: forward backward right left add one of these to your current "t.". So now you will have something like this: >>> t.forward Now that we know where we are going, we need to tell it how far. When you add a number, you need to close it off with parenthesis. Looks like this: (100) or (5) or (20) Each number is a pixel. So if I say to move forward(100), The turtle will move 100 pixels on the screen. Also, the turtle is an arrow and it starts out pointing EAST (90 degrees)! Now that I told you how to do it your movement commands should look something like this: t.forward(100 or any value) t.backward(100 or any value) t.right(90 or any value) t.left(90 or any value) SYNTAX ERRORS Now you need to know about syntax errors. You will get a syntax error if you did not write something right. Example: forward100 That's WAAAAAAAY wrong. They forgot the t. and parenthesis. Some more examples: tforward(10 t.foward(100) t.up clear() Also if you misspell something it will be a syntax error. So if you get a syntax error and don't delete it the code you wrote will break. Click delete code and put in the number of the command you want to delete. T.CLEAR() Now I can teach you how to clear stuff. If you use the simple command t.clear() you can erase everything. T.HOME() Also, using the command t.home() you can go back to (0,0) and point in the direction you started in (pointing east) T.CIRCLE(diameter) You can also draw circles. Use the command t.circle( enter pixel diameter here ). In the parenthesis you put the pixel diameter of the circle. T.PENCOLOR(r,g,b) We can also change the pen color. The computer uses a color system called RGB. RGB stands for red, green, and blue. We can add how much red, blue, and green we want. So if we do t.pencolor(1,0,0) we are saying we want 100% red, 0% green, and 0% blue. So our color will be red. This also means you can do different colors and it’s pretty straight forward. Do t.pencolor(0,1,0) and you will get green, or if you do t.pencolor(0,0,1), you will get blue. You can also mix colors. If you do t.pencolor(1,1,0) you will get a lighter green. You can also do like 50% of a color with a decimal. You need a 0 before it though because I suck at coding but that's not a big deal. To get the color black, do t.pencolor(1,1,1) and if you want White, then do t.pencolor(0,0,0) T.STAMP() t.stamp() just stamps the turtle shape at it's current position.
All credit given to Python's turtle graphics. No code was copied. I wrote it all by myself. -----------------------------COMMANDS----------------------------- t.forward( enter value here ) t.backward( enter value here ) t.right( enter value here ) t.left( enter value here ) t.up() t.down() t.clear() t.home() t.circle( enter diameter here ) t.pencolor(red value, green value, blue value) t.stamp()