Return-Path: X-Original-To: apmail-flex-dev-archive@www.apache.org Delivered-To: apmail-flex-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 725E2110E7 for ; Mon, 8 Sep 2014 07:49:13 +0000 (UTC) Received: (qmail 31677 invoked by uid 500); 8 Sep 2014 07:49:12 -0000 Delivered-To: apmail-flex-dev-archive@flex.apache.org Received: (qmail 31642 invoked by uid 500); 8 Sep 2014 07:49:12 -0000 Mailing-List: contact dev-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list dev@flex.apache.org Received: (qmail 31630 invoked by uid 99); 8 Sep 2014 07:49:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Sep 2014 07:49:11 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of omuppi1@gmail.com designates 74.125.82.169 as permitted sender) Received: from [74.125.82.169] (HELO mail-we0-f169.google.com) (74.125.82.169) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Sep 2014 07:48:46 +0000 Received: by mail-we0-f169.google.com with SMTP id w61so255173wes.0 for ; Mon, 08 Sep 2014 00:48:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to:content-type; bh=AWdXTLvkQLYUC0K9deHwCipXd9IYDAidmIfBBPFlgI4=; b=q3bJPwg7VrP6WzfZ9iLEjUtcE2sfx4zA7MdftD9UQTlGaXMG3fnNFqOwU/Nf94XWlm n1Ojr5OtxkUfDaW8FN6LyvsMkLqw+BGVgxNSftCc0o93sefdRclMeEIBERn0bddb2qzQ ek/97s6yAMc/VglLkx1AnMpVTMHjN+tITeycF5zC9qoLv61VIIZ4VS2olgN6RIVoYdxB hsl2DnGkKgB6snnEmWqXqPEaTbE4s7hxwA5xtV4QtSDPDF9dDNyXSwV8WolgF6GrxWRr +sx9PEyGw3/R9/cqgabIiZezH5kQbZJPUD9Scy23k6dG4iOdQ433d5eA9LzQ43Nxdvex wchg== X-Received: by 10.194.90.233 with SMTP id bz9mr33296890wjb.94.1410162525708; Mon, 08 Sep 2014 00:48:45 -0700 (PDT) MIME-Version: 1.0 Sender: omuppi1@gmail.com Received: by 10.216.97.208 with HTTP; Mon, 8 Sep 2014 00:48:15 -0700 (PDT) From: OmPrakash Muppirala Date: Mon, 8 Sep 2014 00:48:15 -0700 X-Google-Sender-Auth: HuchT2a_jXtybemSNSJqPu4sCME Message-ID: Subject: [FlexJS] Drawing API To: "dev@flex.apache.org" Content-Type: multipart/alternative; boundary=047d7bfd05246ba5e40502890c36 X-Virus-Checked: Checked by ClamAV on apache.org --047d7bfd05246ba5e40502890c36 Content-Type: text/plain; charset=UTF-8 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 --047d7bfd05246ba5e40502890c36--