PathBuilder was designed to be drawing agnostic and the Graphics package is mostly interfaces. Theoretically, anything in Graphics should be usable with both SVG and Canvas implementations.
The org.apache.royale.svg classes are SVG implementations and can be used within any Royale components. I wanted to do a canvas implementation as well, but it’s something I never got to. AFAIK, the only Canvas implementation in Royale is the CreateJS package. For code with PathBuilder in use, take a look at the following TLF classes: TextFlowLine AdonrmentUtils BackgroundManager FYI, there is also logic for Transforms which work in conjunction with the Graphics classes. HTH, Harbs > On May 18, 2018, at 3:01 PM, Carlos Rovira <[email protected]> wrote: > > Thanks Harbs, > > to understand better about the code you said, this is done creating a > Canvas where the drawing is done? If so what is the canvas component in > Royale? > I'll want to try that, if there's some example code in same place, please > let me know. > thanks! > > 2018-05-18 13:19 GMT+02:00 Harbs <[email protected]>: > >> Take a look at the Graphics package. >> >> Specifically, PathBuilder lets you use commands very similar to Flash >> drawing commands. >> >> Also, CompoundGraphic in Basic offers a number of drawing commands. >> >> org.apache.royale.svg (in Basic) has many basic shape types which simplify >> drawing of those. >> >> I’ve used these classes extensively, and they work very well. >> >> Thanks, >> Harbs >> >>> On May 18, 2018, at 2:09 PM, Carlos Rovira <[email protected]> >> wrote: >>> >>> I talk about "drawing things" that was something >>> more related to the Flash API. >> >> > > > -- > Carlos Rovira > http://about.me/carlosrovira
