background preloader

Processing

Facebook Twitter

Chapter 17: Text: Exercise 17-5: Text Next to Bouncing Ball. Take the bouncing ball example (Example 5-6).

Chapter 17: Text: Exercise 17-5: Text Next to Bouncing Ball

Display the X and Y coordinates as text next to the ball. // Learning Processing // Daniel Shiffman // // Exercise 17-5: Take the bouncing ball example from Chapter 5. // Display the X and Y coordinates as text next to the ball. // This answer also incorporates movement along the y-axis, as // well as object orientation Ball b; PFont f; void setup() { size(200,200); smooth(); b = new Ball(150,100,1,1); f = createFont("Arial",12); } void draw() { background(255); b.move(); b.display(); } Tutorials: Yahoo Search API. Visualizing Data: Exploring and Explaining Data with the Processing Environment: Amazon.co.uk: Ben Fry. Blog Archive » Simple Processing Twitter.