当前位置:网站首页>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. 扑克牌中的顺子
- ECU简介
- How to uninstall MySQL cleanly
- 【729. 我的日程安排表 I】
- Timestamp strtotime the day before or after the date
- [729. My schedule I]
- 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
- Keras crash Guide
- [Jianzhi offer] 66 Build product array
猜你喜欢

Etcd build a highly available etcd cluster

Solve cmakelist find_ Package cannot find Qt5, ECM cannot be found

How was the middle table destroyed?

The two ways of domestic chip industry chain go hand in hand. ASML really panicked and increased cooperation on a large scale

Android 隐私沙盒开发者预览版 3: 隐私安全和个性化体验全都要
![[729. My schedule I]](/img/e3/32914227d00cf7595ee850e60f2b72.png)
[729. My schedule I]

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

Jarvis OJ simple network management protocol

采用药丸屏的iPhone14或引发中国消费者的热烈抢购

国产芯片产业链两条路齐头并进,ASML真慌了而大举加大合作力度
随机推荐
Fleet tutorial 09 basic introduction to navigationrail (tutorial includes source code)
Deep dive kotlin synergy (XXI): flow life cycle function
Practical example of propeller easydl: automatic scratch recognition of industrial parts
PHP strict mode
Embedded-c Language-1
Jarvis OJ Telnet Protocol
NPM installation
WR | 西湖大学鞠峰组揭示微塑料污染对人工湿地菌群与脱氮功能的影响
齐宣王典故
Cs231n notes (bottom) - applicable to 0 Foundation
Learnopongl notes (I)
[729. My schedule I]
Sentinel-流量防卫兵
ECU introduction
网上办理期货开户安全吗?网上会不会骗子比较多?感觉不太靠谱?
PHP talent recruitment system development source code recruitment website source code secondary development
Iphone14 with pill screen may trigger a rush for Chinese consumers
tf. sequence_ Mask function explanation case
【剑指 Offer】63. 股票的最大利润
【剑指 Offer】66. 构建乘积数组