当前位置:网站首页>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
边栏推荐
- sqlserver 做cdc 要对数据库性能有什么要求么
- What else do you not know about new map()
- How was the middle table destroyed?
- Do sqlserver have any requirements for database performance when doing CDC
- American chips are no longer proud, and Chinese chips have successfully won the first place in emerging fields
- 国产芯片产业链两条路齐头并进,ASML真慌了而大举加大合作力度
- It is forbidden to copy content JS code on the website page
- [Jianzhi offer] 63 Maximum profit of stock
- C# TCP如何限制单个客户端的访问流量
- Games101 notes (II)
猜你喜欢

【性能测试】jmeter+Grafana+influxdb部署实战

Jarvis OJ shell traffic analysis

【机器人坐标系第一讲】

Basic introduction to the control of the row component displaying its children in the horizontal array (tutorial includes source code)

NPM installation
![[729. My Schedule i]](/img/e3/32914227d00cf7595ee850e60f2b72.png)
[729. My Schedule i]

File operation --i/o

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

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

Embedded-c Language-1
随机推荐
SQL injection of cisp-pte (Application of secondary injection)
Embedded-c Language-1
Application of threshold homomorphic encryption in privacy Computing: Interpretation
Sentinel flow guard
[Jianzhi offer] 66 Build product array
手机开证券账户安全吗?怎么买股票详细步骤
【testlink】TestLink1.9.18常见问题解决方法
BS-XX-042 基于SSM实现人事管理系统
Games101 notes (I)
拷贝方式之DMA
Bs-xx-042 implementation of personnel management system based on SSM
【Web攻防】WAF检测技术图谱
[wechat applet] read the life cycle and route jump of the applet
Jarvis OJ 远程登录协议
Jarvis OJ 简单网管协议
It is forbidden to copy content JS code on the website page
Android privacy sandbox developer preview 3: privacy, security and personalized experience
【729. 我的日程安排錶 I】
飞桨EasyDL实操范例:工业零件划痕自动识别
Is it safe to open futures accounts online? Will there be more liars online? Doesn't feel very reliable?