当前位置:网站首页>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
边栏推荐
- 【剑指 Offer】61. 扑克牌中的顺子
- Detailed explanation of use scenarios and functions of polar coordinate sector diagram
- Copy mode DMA
- 微信公众号网页授权登录实现起来如此简单
- 干货!半监督预训练对话模型 SPACE
- Facing new challenges and becoming a better self -- attacking technology er
- PHP strict mode
- Keras crash Guide
- Get ready for the pre-season card game MotoGP ignition champions!
- 【剑指 Offer】63. 股票的最大利润
猜你喜欢

养不起真猫,就用代码吸猫 -Unity 粒子实现画猫咪

Scratch colorful candied haws Electronic Society graphical programming scratch grade examination level 3 true questions and answers analysis June 2022

飞桨EasyDL实操范例:工业零件划痕自动识别

国产芯片产业链两条路齐头并进,ASML真慌了而大举加大合作力度

ECU简介

【729. 我的日程安排錶 I】

拷贝方式之DMA

Get ready for the pre-season card game MotoGP ignition champions!
![[team PK competition] the task of this week has been opened | question answering challenge to consolidate the knowledge of commodity details](/img/d8/a367c26b51d9dbaf53bf4fe2a13917.png)
[team PK competition] the task of this week has been opened | question answering challenge to consolidate the knowledge of commodity details

Error in composer installation: no composer lock file present.
随机推荐
What else do you not know about new map()
【性能测试】全链路压测
[729. My schedule I]
国产芯片产业链两条路齐头并进,ASML真慌了而大举加大合作力度
dried food! Semi supervised pre training dialogue model space
树莓派4b安装Pytorch1.11
Is it safe to open a securities account by mobile phone? Detailed steps of how to buy stocks
ECU简介
[729. My Schedule i]
【 brosser le titre 】 chemise culturelle de l'usine d'oies
[Jianzhi offer] 66 Build product array
精准防疫有“利器”| 芯讯通助力数字哨兵护航复市
Games101 notes (I)
Browser rendering principle and rearrangement and redrawing
如何安装mysql
Embedded-c Language-1
Little knowledge about C language (array and string)
Detailed explanation of use scenarios and functions of polar coordinate sector diagram
【jmeter】jmeter脚本高级写法:接口自动化脚本内全部为变量,参数(参数可jenkins配置),函数等实现完整业务流测试
Facing new challenges and becoming a better self -- attacking technology er