Logo. Primitive to draw.
There are many other primitives that can help us do our jobs, we see that we can draw:
EARLY TO DRAW:
AVANZA n (V n): The tortoise moves the specified number of units. BACK
n (RE n): The turtle back the specified number of units.
GIRADERECHA n (GD n): The turtle rotates clockwise in the number of degrees.
GIRAIZQUIERDA n (GI n): The turtle rotates counter clockwise to the specified angle.
PONLAPIZ (PLA): Put the pen REDUCED and the way painted (painting is the normal mode of the turtle to draw).
RUBBER (GO): Put the pen down and how to delete (the turtle is fading where
move).
SUBELAPIZ (SL): Put the pen lifted, without changing its mode.
BAJALAPIZ (BL): Put the pen down, without changing its mode.
CENTER: Returns a turtle in the middle of the screen without deleting. You must use the primitive SUBELAPIZ to prevent draw while going toward the center.
PONCOLORLAPIZ [xyz] (PONCL [xyz]): Sets the color pencil
determined in accordance with:
PONCOLORLAPIZ [255 000 000] = Red
PONCOLORLAPIZ [000 255 000] = Green
PONCOLORLAPIZ [000 000 255] = Blue
OCULTATORTUGA (OT): Hides the turtle (the triangle) on the screen.
MUESTRATORTUGA (MT): Show the turtle (the triangle) on the screen.
BORRAPANTALLA (BP): Clears the screen and place the turtle in the center.
HEAD [text] (RO [text]): Enter text in the direction the turtle is.
PONGROSOR [width height (PONG [width height]): Put the pen stroke width and height specified. MSWLogo uses only the value of the width.
0 comments:
Post a Comment