521xueweihan / HelloGitHub

:octocat: 分享 GitHub 上有趣、入门级的开源项目。Share interesting, entry-level open source projects on GitHub.
https://hellogithub.com
85.63k stars 9.44k forks source link

【项目推荐】一个在网页上编写代码以画图的编辑器P5.js-web-editor #2727

Open RuimingShen opened 1 month ago

RuimingShen commented 1 month ago

推荐项目

function setup() { createCanvas(512, 512); fill(255, 0, 0); }

function draw() { if (keyIsDown(LEFT_ARROW)) { x -= 5; }

if (keyIsDown(RIGHT_ARROW)) { x += 5; }

if (keyIsDown(UP_ARROW)) { y -= 5; }

if (keyIsDown(DOWN_ARROW)) { y += 5; }

clear(); ellipse(x, y, 50, 50); describe(50-by-50 red ellipse moves left, right, up, and down with arrow presses.); }


- 截图:(可选)gif/png/jpg

- 后续更新计划: