当前位置:网站首页>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
边栏推荐
- 干货!半监督预训练对话模型 SPACE
- [team PK competition] the task of this week has been opened | question answering challenge to consolidate the knowledge of commodity details
- Is it safe for qiniu business school to open a stock account? Is it reliable?
- Basic introduction to the control of the row component displaying its children in the horizontal array (tutorial includes source code)
- The first EMQ in China joined Amazon cloud technology's "startup acceleration - global partner network program"
- 【性能测试】全链路压测
- Win11 prompt: what if the software cannot be downloaded safely? Win11 cannot download software safely
- 拷贝方式之DMA
- Benji Bananas 会员通行证持有人第二季奖励活动更新一览
- Jarvis OJ Webshell分析
猜你喜欢

The first EMQ in China joined Amazon cloud technology's "startup acceleration - global partner network program"

Deeply cultivate 5g, and smart core continues to promote 5g applications

Solution of vant tabbar blocking content

Games101 notes (I)

BS-XX-042 基于SSM实现人事管理系统

拷贝方式之DMA

Bs-xx-042 implementation of personnel management system based on SSM

美国芯片傲不起来了,中国芯片成功在新兴领域夺得第一名

Jarvis OJ 远程登录协议

兰空图床苹果快捷指令
随机推荐
SQL injection of cisp-pte (Application of secondary injection)
Error in composer installation: no composer lock file present.
Iphone14 with pill screen may trigger a rush for Chinese consumers
树莓派4b安装Pytorch1.11
Flet tutorial 12 stack overlapping to build a basic introduction to graphic and text mixing (tutorial includes source code)
【729. 我的日程安排錶 I】
Bs-xx-042 implementation of personnel management system based on SSM
The first EMQ in China joined Amazon cloud technology's "startup acceleration - global partner network program"
【Web攻防】WAF检测技术图谱
[Web attack and Defense] WAF detection technology map
[729. My Schedule i]
Binary tree related OJ problems
Learnopongl notes (II) - Lighting
【组队 PK 赛】本周任务已开启 | 答题挑战,夯实商品详情知识
[Jianzhi offer] 66 Build product array
网站页面禁止复制内容 JS代码
[wechat applet] read the life cycle and route jump of the applet
Summary of PHP pseudo protocol of cisp-pte
【剑指 Offer】63. 股票的最大利润
Solve cmakelist find_ Package cannot find Qt5, ECM cannot be found