ace
ace

Reputation: 12024

What is the native application API for iphone and android that is equivalent html5 canvas?

I have developed html5 canvas based animations (non-interacive) which work very well in latest desktop browsers but perform miserably on iphone and android. I want to port these web based html5 canvas application to native iphone and android applications. I am looking for something that will provide the quickest way to port such applications to native iphone and android applications without having to learn something completely different like opengl es. Is there such native API ( something like canvas 2d drawing surface) and if so what is the API?

Upvotes: 1

Views: 609

Answers (2)

Aurum Aquila
Aurum Aquila

Reputation: 9126

On the iPhone, you should look into Core Animation and Animation Blocks. I have 0 Android experience though, so I can't help you with that.

Upvotes: 1

CommonsWare
CommonsWare

Reputation: 1006614

In Android, you have a Canvas. You can elect to use that alongside the existing widget set (e.g., by creating your own View subclass and overriding onDraw() to get the Canvas for the View), if you wish.

Note that I have not played much with the Canvas API, as graphics are not my strong suit, so I don't have all the details of how to use it for you.

Upvotes: 1

Related Questions