- var p = Processing(CanvasElement);
- p.size(100, 100);
- p.background(0);
- p.fill(255);
- p.ellipse(50, 50, 50, 50);class Spin {
- float x, y, speed;
- float angle = 0.0;
- Spin(float xpos, float ypos, float s) {
- x = xpos;
- y = ypos;
- speed = s;
- }
- void update() {
- angle += speed;
- }
- }
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment