当前位置:网站首页>Processing function translate (mousex, mousey) learning
Processing function translate (mousex, mousey) learning
2022-06-26 13:05:00 【Harmony between man and nature 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);
}
边栏推荐
- HDU 5860
- Beifu PLC passes MC_ Readparameter read configuration parameters of NC axis
- Vivado 错误代码 [DRC PDCN-2721] 解决
- C structure: definition and example
- Openlayers drawing dynamic migration lines and curves
- 首批通过!百度智能云曦灵平台获信通院数字人能力评测权威认证
- 详细讲解C语言11(C语言系列)
- [BSidesCF 2019]Kookie 1
- 轻流完成与「DaoCloud Enterprise 云原生应用云平台」兼容性认证
- Goto statement to realize shutdown applet
猜你喜欢

How does easygbs solve the abnormal use of intercom function?

Electron official docs series: Get Started

Deep parsing MySQL binlog

processing 随机生成线动画

深度解析当贝盒子B3、腾讯极光5S、小米盒子4S之间的区别

openlayers 绘制动态迁徙线、曲线

倍福Ethercat模块网络诊断和硬件排查的基本方法

Verilog中的系统任务(显示/打印类)--$display, $write,$strobe,$monitor

IDC报告:百度智能云AI Cloud市场份额连续六次第一

National standard gb28181 protocol easygbs cascaded universal vision platform, how to deal with live message 403?
随机推荐
深度解析当贝盒子B3、腾讯极光5S、小米盒子4S之间的区别
中科软外包一面
Processsing 鼠标交互 学习
.NET MAUI 性能提升
自动化测试的局限性你知道吗?
倍福PLC旋切基本原理和应用例程
第01章_Linux下MySQL的安装与使用
Detailed explanation of C const: definition and use of C constant
倍福TwinCAT通过Emergency Scan快速检测物理连接和EtherCAT网络
code force Party Lemonade
RSS rendering of solo blog system failed
F - Charm Bracelet
解中小企业之困,百度智能云打个样
Deep parsing MySQL binlog
File remote synchronization and backup artifact Rsync
Explain C language 10 in detail (C language series)
MySQL 自定义函数时:This function has none of DETERMINISTIC, NO SQL 解决方案
别乱用 FULL_CASE 和 PARALLEL_CASE
Lightflow completed the compatibility certification with "daocloud Enterprise Cloud native application cloud platform"
机器学习笔记 - 时间序列的季节性