当前位置:网站首页>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
边栏推荐
- [Jianzhi offer] 61 Shunzi in playing cards
- [61dctf]fm
- 网站页面禁止复制内容 JS代码
- 【jmeter】jmeter脚本高级写法:接口自动化脚本内全部为变量,参数(参数可jenkins配置),函数等实现完整业务流测试
- American chips are no longer proud, and Chinese chips have successfully won the first place in emerging fields
- Solve cmakelist find_ Package cannot find Qt5, ECM cannot be found
- Keras crash Guide
- 高数 | 旋转体体积计算方法汇总、二重积分计算旋转体体积
- The first EMQ in China joined Amazon cloud technology's "startup acceleration - global partner network program"
- Use byte stream to read Chinese from file to console display
猜你喜欢
Cs231n notes (bottom) - applicable to 0 Foundation
Win11 prompt: what if the software cannot be downloaded safely? Win11 cannot download software safely
DenseNet
How was the middle table destroyed?
Learnopongl notes (II) - Lighting
Games101 notes (III)
国产芯片产业链两条路齐头并进,ASML真慌了而大举加大合作力度
飞桨EasyDL实操范例:工业零件划痕自动识别
二叉树相关OJ题
ECU简介
随机推荐
Summary of PHP pseudo protocol of cisp-pte
浏览器渲染原理以及重排与重绘
如何安装mysql
【刷题篇】有效的数独
手机开证券账户安全吗?怎么买股票详细步骤
Writing method of twig array merging
Is it safe to open an account for digging wealth stocks? How is it safe to open a stock account?
C# TCP如何限制单个客户端的访问流量
[team PK competition] the task of this week has been opened | question answering challenge to consolidate the knowledge of commodity details
为季前卡牌游戏 MotoGP Ignition Champions 做好准备!
【剑指 Offer】63. 股票的最大利润
Scratch colorful candied haws Electronic Society graphical programming scratch grade examination level 3 true questions and answers analysis June 2022
采用药丸屏的iPhone14或引发中国消费者的热烈抢购
JSON转MAP前后数据校验 -- 自定义UDF
[61dctf]fm
Flet tutorial 12 stack overlapping to build a basic introduction to graphic and text mixing (tutorial includes source code)
Yarn common commands
Timestamp strtotime the day before or after the date
【机器人坐标系第一讲】
[729. My schedule I]