当前位置:网站首页>processing 函数translate(mouseX, mouseY)学习
processing 函数translate(mouseX, mouseY)学习
2022-06-26 12:37:00 【天人合一peng】
void setup() {
size(200, 200);
}
void draw() {
background(255);
rectMode(CENTER);
ellipseMode(CENTER);
// Draw everything relative to (mouseX, mouseY)
translate(mouseX, mouseY);
// Draw Zoog's body
stroke(0);
fill(175);
rect(0, 0, 20, 100);
// Draw Zoog's head
stroke(0);
fill(255);
ellipse(0, -30, 60, 60);
// Draw Zoog's eyes
stroke(0);
fill(0);
ellipse(-19, -30, 16, 32);
ellipse( 19, -30, 16, 32);
// Draw Zoog's legs
stroke(0);
line(-10, 50, -20, 60);
line( 10, 50, 20, 60);
}
边栏推荐
- Typescript learning (I) type
- "Pinduoduo and short video speed version", how can I roast!
- RSS rendering of solo blog system failed
- Word文档导出(使用固定模板)
- 5+API,清除应用缓存
- 快手实时数仓保障体系研发实践
- JS how to judge when data contains integer and floating-point types. Floating-point decimals retain two digits after the decimal point
- [solved] laravel completes the scheduled job task (delayed distribution task) [execute a user-defined task at a specified time]
- Comparison of latest mobile phone processors in 2020 (with mobile phone CPU ladder diagram)
- 【shell】生成指定日期之间的字符串
猜你喜欢
随机推荐
PHP generate order number
Realize microservice load balancing (ribbon)
Analysis report on China's photovoltaic inverter market prospect forecast and investment strategy recommendations in 2022
软件测试 - 基础篇
【网络是怎么连接的】第二章(中):一个网络包的发出
初识-软件测试
国标GB28181协议EasyGBS级联宇视平台,保活消息出现403该如何处理?
Redis learning - 03 transaction
Laravel uses find_ IN_ The set() native MySQL statement accurately queries whether a special string exists in the specified string to solve the problem that like cannot be accurately matched. (resolve
一个快速切换一个底层实现的思路分享
Spark-day03-core programming RDD operator
China's smart toy market outlook and investment strategy consulting forecast report from 2022 to 2027
Demand scale forecast and investment competitiveness analysis report of China's new material market 2022-2028
[solved] laravel completes the scheduled job task (delayed distribution task) [execute a user-defined task at a specified time]
KITTI Detection dataset whose format is letf_top_right_bottom to JDE normalied xc_yc_w_h
The laravel dingo API returns a custom error message
Fengshentai old shooting range Kali series
老司机总结的12条 SQL 优化方案(非常实用)
Investment planning and forecast report on the future direction of China's smart agriculture during the 14th five year plan (2022)
ES6:Map









