logo计算机编程简单指令,pc logo 基本绘图命令

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

百度百科中的词条信息:

PC LOGO 4.0常用命令一览表

内容:

编号 英文指令 英文简码 中文指令 用法举例 用法说明

1 FORWARD FD 前进 FD 100 前进 100 步

2 BACK BK 后退 BK 100 后退 100 步

3 RIGHT RT 右转 RT 90 右转 90 度

5 PENUP PU 抬笔 PU 把笔提起, 不留痕迹

6 PENDOWN PD 落笔 PD 把笔放下, 会留痕迹

7 PENERASE PE 笔擦 PE 将走过的地方擦去,恢复画笔输入PD。

8 SETPC

笔色 SETPC 9 将笔色设为淡蓝色(n:0-15)

9 SETBG

背景色 SETBG 15 将底色设为白色(n:0-15)

10 SETWIDTH SETW 笔粗 SETW 1 将笔粗设为1点

11 SHOWTURTLE ST 出现 ST 显示小海龟

12 HIDETURTLE HT 隐形 HT 不显示小海龟

13 CLEARSCREEN CS 清除 CS 清除绘图区,小海龟回原点(0,0)

14 CLEAN

清图 CLEAN 清除绘图区,小海龟留在最后的地方

15 CLEARTEXT CT 清文 CT 清除文字区

16 HOME

返回母位 HOME 小海龟回原点(0,0)

17 SETHEAD SETH 定角 SETH 60 设定小海龟的角度为60度(0-360)

18 SETXY

定位 SETXY 100 100 把小海龟定位在坐标 (100,100)

19 SETX

横坐标 SETX 100 把小海龟定位在横坐标(100,Y)

20 SETY

纵坐标 SETY 100 把小海龟定位在纵坐标(X,100)

21 SUM

求和函数 SUM X Y 或(SUM X Y…) 求几个数的和

22 REMAINDER

余数函数 REMAINDER X Y 求X/Y的余数部分

23 QUOTIENT

求商函数 QUOTIENT X Y 求X/Y的商

24 DRAW

初始化 DRAW 初始化

25 TEXTSCREEN TS 本文 TS 进入本文模式

26 SPLITSCREEN SS 图文混合 SS 进入图文混合模式

27 FULLSCREEN FS 全图 FS 进入全图模式

28 WINDOW WI 穿透 WI 小海龟活动范围可穿过绘图区边界

29 FENCE FE 围墙 FE 小海龟活动范围限制在绘图区边界

30 WRAP

绕回 WRAP 小海龟活动范围可穿过绘图区边界

31 PRINT PR 印出 PR "HI"

(PR [ A S] [1 2]) 在文字区印出字串"HI"

32 REPEAT

重复 RP 4 [ FD 100 RT 90 ] 重复括弧内指令4次, 完成正方形

33 WHILE

当 WHILE [....][.

...] while 条件循环

34 IF~ELSE

假如~否则

IF ~ ELSE 条件指令

35 TO

定义 TO BBB 定义程序 BBB

36 END

结束 END 程序定义结束

37 STOP

停止

停止程序(常配合IF ~ ELSE)

38 POTS

显示程序名 POTS 显示程序名称

39 PRINTOUT PO 显示程序内容 PO AAA 显示 AAA 程序内容

40 ER ALL

删除所有程序 ER ALL 删除所有程序

41 ERASE ER 删除程序 ER AAA 删除程序AAA

42 EDIT

打开编辑器 EDIT 打开编辑器

43 INT

取整函数 INT X 将X的小数部分截去

44 WAIT

等待 WAIT 1 等待0.01秒后继续

45 ROUND

四舍五入取整 ROUND X 将X按四舍五入取整

46 MAKE

赋值函数 MAKE “x 3 给变量x赋值为3

47 TYPE

印出 TYPE ZFX.LGO>PRN 打印过程ZFX.LGO的内容

48 FILL

颜色填充 FILL 用当前的颜色填充

49 TRUE

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
接触过 LOGO 编程语言的人应该都知道这款软件,这也是笔者接触的第一门编程语言,怀念之情难以言表。特将此资源拿出来与大家共享。 注:资源包中包含英文原版和汉化补丁。 以下是原版软件的 README: PC Logo for Windows This file contains the latest information about PC Logo for Windows. PC Logo for Windows installation automatically installs four example programs. These are: Shape Editor The PC Logo for Windows shape editor provides an easy and convenient way to change the turtle shape and save your new shapes as files. The shape editor is written in Logo and also provides an example of using Logo to create a program complete with windows, dialog boxes, buttons, and help. To use the shape editor, load the SHED.LGO file from within Logo or double-click the Shape Editor icon in the Program Manager. Music The MUSIC.LGO file provides an example of using Logo to play music. To listen to the music, load the MUSIC.LGO file from within Logo or double-click the Music icon in the Program Manager. Follow the instructions that appear on the screen. Squiral The squiral program is an example of a simple Logo procedure that uses recursion to create colorful and complex graphics designs. To see the squirals, load the SQUIRAL.LGO file from within Logo or double-click the Squiral icon in the Program Manager. Shapes The shapes program illustrates using multiple turtles in Logo with different shapes for each of them. To see the different shapes, load the SHAPES.LGO file from within Logo or double-click the Shapes icon in the Program Manager. More information about Logo Many books have been published about teaching Logo and using it to teach a variety of other subjects. Harvard Associates has gathered the best of these books into the PC Logo Library. The PC Logo Library catalog accompanies each copy of PC Logo for Windows. Contact Harvard Associates if you would like a copy of the catalog or wish to order one or more of the selections in the PC Logo Library. Harvard Associates, Inc. 10 Holworthy Street Cambridge, MA 02138 U.S.A. phone: (617) 492-0660 fax: (617) 492-4610 CompuServe: 70312,243 Internet: [email protected] If you are contacting Harvard Associates about a Logo programming problem, please use either fax, mail, or electronic mail and include a written example of a Logo procedure that illustrates the problem.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值