You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
279 B
18 lines
279 B
2 years ago
|
ball = new BallSwing(150, 0, 300, 150, 10)
|
||
|
|
||
|
function setup() {
|
||
|
// put setup code here
|
||
|
createCanvas(300,300);
|
||
|
//frameRate(60);
|
||
|
}
|
||
|
|
||
|
function draw() {
|
||
|
// put drawing code here
|
||
|
background(32);
|
||
|
fill(128);
|
||
|
stroke(128);
|
||
|
strokeWeight(2);
|
||
|
ball.draw();
|
||
|
ball.update();
|
||
|
}
|