当前位置:网站首页>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);
}
边栏推荐
- Tiger DAO VC产品正式上线,Seektiger生态的有力补充
- 文件远程同步、备份神器rsync
- imagecopymerge
- TSMC Samsung will mass produce 3nm chips in 2022: will the iPhone be the first?
- 老司机总结的12条 SQL 优化方案(非常实用)
- 【网络是怎么连接的】第二章(下):一个网络包的接收
- sqlalchemy event listen Automatic generate CRUD excel
- [esp32-C3][RT-THREAD] 基于ESP32C3运行RT-THREAD bsp最小系统
- 记一次phpcms9.6.3漏洞利用getshell到内网域控
- SQL injection
猜你喜欢
![[BSidesCF 2019]Kookie 1](/img/22/585d081668e67b8389a1b90aaebe9d.png)
[BSidesCF 2019]Kookie 1

Comparison of latest mobile phone processors in 2020 (with mobile phone CPU ladder diagram)

程序员必备,一款让你提高工作效率N倍的神器uTools

Splunk iowait 报警的解决

TSMC Samsung will mass produce 3nm chips in 2022: will the iPhone be the first?

JS get the current screen height method and listen for DOM elements to enter the viewport

使用SSH密钥对登陆服务器

轻流完成与「DaoCloud Enterprise 云原生应用云平台」兼容性认证

Less than 40 lines of code to create a blocprovider
![[esp32-C3][RT-THREAD] 基于ESP32C3运行RT-THREAD bsp最小系统](/img/4a/503240b332e3279047c438f1d9845e.png)
[esp32-C3][RT-THREAD] 基于ESP32C3运行RT-THREAD bsp最小系统
随机推荐
Sharing ideas for a quick switch to an underlying implementation
PHP get directory size
【网络是怎么连接的】第一章:浏览器生成消息
记一次phpcms9.6.3漏洞利用getshell到内网域控
老司机总结的12条 SQL 优化方案(非常实用)
Investment forecast and development strategy analysis report of China's rural sewage treatment industry in 2022
el-form-item 包含两个input, 校验这两个input
Iframe usage and contentwindow, parent and PostMessage communication methods
Websocket and socket IO case practice
详细实操分享,下班刷了两小时的搞笑视频,一个月收益7000多
[极客大挑战 2019]RCE ME 1
Mongodb of NoSQL - 03 mongodb CRUD
Encapsulate request request of uni app
Realize microservice load balancing (ribbon)
.NET MAUI 性能提升
sqlalchemy event listen Automatic generate CRUD excel
7-2 大盗阿福
Learning directory
Report on in-depth analysis and investment strategy recommendations for China's petroleum coke industry (2022 Edition)
Tiger DAO VC产品正式上线,Seektiger生态的有力补充