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?
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.
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.
精彩评论