当前位置:网站首页>The first lesson of EasyX learning
The first lesson of EasyX learning
2022-07-05 17:05:00 【Blue whale not blue 369】
RGB( The red part , The green part , The blue part )
- The value of each color is from 0~255
initgraph(int width,int height,int flag=NULL) Used to initialize the drawing window ( create a window )
2. width Specifies the width of the window
3. height Specifies the height of the window
4. flag The style of the window , The default is NULL SHOWCONSOLE Display console NOCLOSE No close button NOMINIMIZE There is no zoom out button
closegraph(); Close the drawing window
cleardevice(); Empty the drawing device
Drawing functions can be divided into three types in terms of filling : No filling , Filled with borders , Borderless fill
Take drawing a circle as an example :
- circle() No filling
- fillcircle() Filled with borders
- solidcircle() Borderless fill
From the shape , Commonly used can be divided into eight kinds
circle A circle | ellipse Drawing ellipse | pie Draw fan | polygon Draw a polygon |
---|---|---|---|
rectangle Draw a rectangular | roundrect Draw a rounded rectangle | line Draw line | putpixel Draw a dot |
Set fill color setfillcolor( Color )
Set the line color setlinecolor( Color )
Set line style setlinestyle( Height , Width , typeface )
outtextxy(int x,int y,LPCTSRT str) Output the string at the specified position
settextcolor(COLORREF color) Sets the current text color
settextstyle(int nHeight,int nWidth,LPCTSTR ipszFace) Set the text style
- nHeight Specifies the height
- nWidth The average width of characters . If the proportion is 0, Automatically adapt
- ipszFace Font name
setbkmode(TRANSPARENT); Can make the text and graphics coincide
边栏推荐
- 【微信小程序】一文读懂小程序的生命周期和路由跳转
- Use JDBC technology and MySQL database management system to realize the function of course management, including adding, modifying, querying and deleting course information.
- 挖财股票开户安全吗?怎么开股票账户是安全?
- 机器学习编译第2讲:张量程序抽象
- Clear restore the scene 31 years ago, volcanic engine ultra clear repair beyond classic concert
- 【剑指 Offer】63. 股票的最大利润
- Fleet tutorial 09 basic introduction to navigationrail (tutorial includes source code)
- Summary of PHP pseudo protocol of cisp-pte
- Is it safe to open futures accounts online? Will there be more liars online? Doesn't feel very reliable?
- How was the middle table destroyed?
猜你喜欢
养不起真猫,就用代码吸猫 -Unity 粒子实现画猫咪
Detailed explanation of use scenarios and functions of polar coordinate sector diagram
采用药丸屏的iPhone14或引发中国消费者的热烈抢购
PHP人才招聘系统开发 源代码 招聘网站源码二次开发
Jarvis OJ webshell analysis
Etcd build a highly available etcd cluster
如何将mysql卸载干净
[first lecture on robot coordinate system]
China Radio and television officially launched 5g services, and China Mobile quickly launched free services to retain users
NPM installation
随机推荐
树莓派4b安装Pytorch1.11
composer安装报错:No composer.lock file present.
【刷题篇】有效的数独
Solution of vant tabbar blocking content
【剑指 Offer】63. 股票的最大利润
Can you help me see what the problem is? [ERROR] Could not execute SQL stateme
Clear restore the scene 31 years ago, volcanic engine ultra clear repair beyond classic concert
【剑指 Offer】66. 构建乘积数组
深耕5G,芯讯通持续推动5G应用百花齐放
C how TCP restricts the access traffic of a single client
【刷題篇】鹅廠文化衫問題
帮忙看看是什么问题可以吗?[ERROR] Could not execute SQL stateme
拷贝方式之DMA
Win11 prompt: what if the software cannot be downloaded safely? Win11 cannot download software safely
Solve cmakelist find_ Package cannot find Qt5, ECM cannot be found
【testlink】TestLink1.9.18常见问题解决方法
7.Scala类
时间戳strtotime前一天或后一天的日期
The first EMQ in China joined Amazon cloud technology's "startup acceleration - global partner network program"
Games101 notes (II)