首页 smallbasic11

smallbasic11

举报
开通vip

smallbasic11矩形GraphicsWindow.DrawRectangle(20,20,300,60)GraphicsWindow.FillRectangle(60,100,300,60)30060椭圆GraphicsWindow.DrawEllipse(20,20,300,60)GraphicsWindow.FillEllipse(60,100,300,60)30060练习设置画图窗口的大小和背景色设置画笔颜色设置画笔粗细画边长100的填充正方形和宽高100的边框正圆形GraphicsWindow.Width=400Graph...

smallbasic11
矩形GraphicsWindow.DrawRectangle(20,20,300,60)GraphicsWindow.FillRectangle(60,100,300,60)30060椭圆GraphicsWindow.DrawEllipse(20,20,300,60)GraphicsWindow.FillEllipse(60,100,300,60)30060练习设置画图窗口的大小和背景色设置画笔颜色设置画笔粗细画边长100的填充正方形和宽高100的边框正圆形GraphicsWindow.Width=400GraphicsWindow.Height=300GraphicsWindow.BackgroundColor="Black“GraphicsWindow.PenColor="Red“GraphicsWindow.PenWidth=4GraphicsWindow.DrawRectangle(20,20,100,100)GraphicsWindow.DrawRectangle(140,20,100,100)用一个循环语句绘制一组大小逐渐递增的矩形。GraphicsWindow.BackgroundColor="Black"GraphicsWindow.PenColor="LightBlue"GraphicsWindow.Width=200GraphicsWindow.Height=200Fori=1To100Step5GraphicsWindow.DrawRectangle(100-i,100-i,i*2,i*2)EndForGraphicsWindow.BackgroundColor="Black"GraphicsWindow.PenColor="LightGreen"GraphicsWindow.Width=200GraphicsWindow.Height=200Fori=1To100Step5GraphicsWindow.DrawEllipse(100-i,100-i,i*2,i*2)EndFor随机的图案Math.GetRandomNumber——设置圆形的x和y座标GraphicsWindow.BackgroundColor="Black"Fori=1To1000GraphicsWindow.BrushColor=GraphicsWindow.GetRandomColor()x=Math.GetRandomNumber(640)y=Math.GetRandomNumber(480)GraphicsWindow.FillEllipse(x,y,10,10)EndFor
本文档为【smallbasic11】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
下载需要: 免费 已有0 人下载
最新资料
资料动态
专题动态
个人认证用户
风清气爽
学校业务主管,擅长阅读与作文教学
格式:ppt
大小:182KB
软件:PowerPoint
页数:0
分类:
上传时间:2021-10-21
浏览量:0