Ciao 访客, welcome back to old school! :p
Damper myDamper;void setup(){ size(300,600); myDamper=new Damper(mouseX,mouseY);}void draw(){ background(255); myDamper.display(); myDamper.movement();}
class Damper { color c; float xpos; float ypos; int w; int h; Damper(float xpos_, float ypos_) { c=color(100, 255, 255); xpos=xpos_; ypos=ypos_; w=80; h=10; } void display() { rectMode(CENTER); fill(c); noStroke(); } void movement() { rect(xpos, ypos, w, h); }}