C++利用EasyX绘制心形线

代码如下 #include <graphics.h> #include <cmath> #include <conio.h> constexpr auto PI = 3.1415926; constexpr auto ONE_ANGLE = PI / 180; //该函数用于绘制心形线 //_x: x方向上的偏移量 //_y: y方向上的偏移量 //a: 缩放倍数 void cardioid(
相关文章
相关标签/搜索