Processing 用来处理各种图像。

 

这是个最简单的、画一个四边形。

void setup(){
  size(640,480);
  background(100,100,100);
  noLoop();
}

void draw(){
  rect(10,10,200,120);
}

 

size(x,y) : 设置画布大小

x : width 宽度; y : height 高度;

 

background(r,g,b):设置画布背景,

r,g,b --red,green,blue 颜色设置

 

rect(x,y,width,height):

x,y : 图像在画布的坐标

width,height: 四边形的宽和高。

Processing 画一个最简单的四边形(1)

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-18
  • 2022-01-09
  • 2022-12-23
  • 2021-12-16
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-13
  • 2022-12-23
  • 2022-12-23
  • 2021-05-29
  • 2021-10-01
  • 2021-07-06
相关资源
相似解决方案