flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From OmPrakash Muppirala <bigosma...@gmail.com>
Subject [FlexJS] Drawing API
Date Mon, 08 Sep 2014 07:48:15 GMT
FlexJS now supports a basic drawing API (Rect, Ellipse, Circle, Path,
SolidColor, SolidColorStroke)  Here are the AS3 [1] and JS [2] versions

So far, the rendering fidelity between the Flash and SVG/HTML5 version is
very very close.  For sure, there are some pretty major things to be worked
out, but generally so far, the results have been very encouraging.

You can see a quick and dirty example here:
Flash version: http://people.apache.org/~bigosmallm/flexjs/drawing/flash/
HTML5 version: http://people.apache.org/~bigosmallm/flexjs/drawing/html5/

HTML5 version has been tested to work fine on Chrome, Firefox, IE11,
Android browser and iPad Safari.

Next up, i will be working on the following items:
Polygons, Linear gradients, Radial gradients, filters and drop shadows.
These should bring us very close to our current FXG based drawing APIs.

After that, I plan on programmatically recreating a few FXG based skins in
FlexJS and see how we can apply it skins on UI components.

Feedback welcome!

[1]
https://github.com/apache/flex-asjs/tree/develop/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/graphics
[2]
https://github.com/apache/flex-asjs/tree/develop/frameworks/js/FlexJS/src/org/apache/flex/core/graphics

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message