小编典典

如何移动 LOGO 中的Turtle?

all

如何移动LOGO中的Turtle


阅读 76

收藏
2022-06-25

共1个答案

小编典典

// MOVE FORWARD
FD 75
// TURN RIGHT
RT 54
// TURN LEFT
LT 21
// MOVE BACKWARD
BK 17

查看此处找到的其他一些海龟命令…


海龟命令

  • BACK ## [BK]- 将Turtle移回
  • BACKGROUND ## [BG]- 设置背景颜色(0-15)

    • 0 - 黑色
    • 1 - 白色
    • 2 - 红色
    • 3 - 青色
    • 4 - 紫色
    • 5 - 绿色
    • 6 - 蓝色
    • 7 - 黄色
    • 8 - 橙色
    • 9 - 棕色
    • 10 - 浅红色
    • 11 - 灰色 1
    • 12 - 灰色 2
    • 13 - 浅绿色
    • 14 - 浅蓝色
    • 15 - 灰色 3
    • CLEARSCREEN [CS] - Clear Screen without moving turtle
    • DRAW - Clear Screen and take turtle home
    • EACH - Tell several sprites, whose numbers are in a list, to accept commands in a second list, e.g. EACH [1 2] [SQUARE 10]
    • FORWARD ## [FD] - Move turtle forward
    • FULLSCREEN - Full graphics screen (same as pressing F5)
    • HEADING - Output turtle heading as a number (0-359)
    • HIDETURTLE [HT] - Make turtle invisible
    • HOME - Move turtle to center of screen pointing up
    • LEFT [LT] - Turn turtle left
    • NODRAW [ND] - Enter text mode with clear screen
    • NOWRAP - Prevent drawings from wrapping around screen
    • PENCOLOR [PC] - Change pen color
    • PENDOWN [PD] - Turtle leaves trail
    • PENUP [PU] - Turtle ceases to leave trail
    • RIGHT ## [RT] - Turn turtle right
    • SETHEADING [SETH] - Set turtle heading, e.g. SETH 180
    • SETSHAPE - Set the current sprite shape (0-7)
    • SETX Move the turtle to the specified x co-ordinates e.g. SETX 50
    • SETXY Move the turtle to the specified x, y co-ordinates Eg. SETXY 50 50
    • SETY Move the turtle to the specified y co-ordinate, e.g. SETY 50
    • SHAPE - Output number of current sprite’s shape
    • SHOWTURTLE [ST] - Make turtle visible
    • SPLITSCREEN - Mixed graphics and text screen (same as pressing F3)
    • STAMPCHAR - Make the turtle stamp a character at the current location, e.g. STAMPCHAR "A
    • TELL - Tell designated sprite to receive commands, e.g. TELL 2
    • TEXTSCREEN - Use whole screen for text (same as pressing F1)
    • TOWARDS - Output heading for turtle to face an X,Y coordinate, e.g. TOWARDS 0 0
    • WRAP - Make turtle drawings wrap around the screen
    • XCOR - Output current x co-ordinate of turtle
    • YCOR - Output current y co-ordinate of turtle
    • ASPECT - Set verticle screen scale factor, default is 0.76

样本直接取自网站: http:
//gaza.freehosting.net/logo/index.html

2022-06-25