Posts Tagged ‘Graphics’

Exploring iPhone Graphics Part 3

Last time we created a simple iPhone application that made a ball bounce around the screen. This time we are going to extend the last example to use the accelerometer to create a gravity influence on the ball. So as you tilt the device the ball will roll in the direction of the tilt. The [...]

Exploring iPhone Graphics Part 2

In Part 1 of this series of articles we drew some simple graphic primitives on the iPhone display. In this article we are going to look at how to do some simple animation. The goal of this example is to create a 2D ball that bounces around the iPhone screen. First of all we need [...]

Plotting a Sine Wave with the iPhone SDK

Got the following request from Leo on the Exploring iPhone Graphics Part 1 article: Could you give me a quick primer on how to draw a sinus curve (or similar curve) with the data coming from an array? Here it is: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 [...]

Exploring iPhone Graphics Part 1

The series of articles is going to discuss creating graphics on the iPhone using the SDK. Part 1 will start out with the basics by drawing some simple 2D graphics. In later articles I plan to get into animation, using the accelerometers and maybe even a little OpenGL. The sample application for this article is [...]