Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
HTML5 Canvas API that mimics the Cocoa's MVC architecture written in javascript.
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
CardsExample
SpaceExample
README.markdown
cocoa-canvas.js

README.markdown

Cocoa Canvas

Cocoa Canvas is designed to be the MVC foundation for HTML5 Canvas applications. It is modeled after the Apple's Cocoa API for rapid development and ease-of-use. It utilizes existing javascript event handling and Canvas drawing, but adds a view hierarchy with event propagation. This API is under development and only the working features are documented.

Development Note

The API is split into modules. Only the 'Core' module is available at this time. The other modules sets will be mentioned, but no documentation is available.

Core (cocoa-canvas.js)

The Core module includes CCApplication and CCView (CCWindow is present, but windowing support is not yet available). Event support is limited to mouse event propagation and basic dragging. This module is enough to build mouse based games with custom views.

UI (under development)

The UI module extends the API with Control and Text fields.

Proposed Modules

  • Networking
  • Documents
  • Core Data
Something went wrong with that request. Please try again.