3 ms·
Wouldn't SVG be a much more natural target for Flash than <canvas> is? What is the benefit of <canvas> over SVG? It seems like it would be easier to do effecti
by briansmith 17y ago
Wouldn't SVG be a much more natural target for Flash than <canvas> is? What is the benefit of <canvas> over SVG?
It seems like it would be easier to do effective hardware acceleration for SVG than it would be to do the same for <canvas>.
- voidpointer 17y agoAdobe used to be behind SVG a lot before the acquisition of (referred to as the merger with) Macromedia.
- yason 17y agoYou need a underlying accelerated 2D operations in both cases, like an implementation based on OpenVG. It's just that <canvas> has a shitload more momentum than SVG ever had.
- daleharvey 17y agowith flash being able to export to iphone apps and now canvas, I am guessing they have done more of the work necessary to uncouple the ide format from the swf format and that exporting to svg shouldnt be too hard either. webgl could be another candidate.
- Sephr 17y agoEvent listeners would be much easier too. You can just add them to svg child nodes instead of doing your own logic on a canvas.
- briansmith 17y agoI found the answer in http://opensource.adobe.com/wiki/display/flexsdk/FXG+1.0+Specification http://opensource.adobe.com/wiki/display/flexsdk/FXG+1.0+Spe.... The HTML5 Canvas support is just a Javascript-based interpreter for these FXG files, as you can see when they zoom in on the source code in the video.: "When initial work on an XML-based graphics interchange format began, the natural first thought was to use SVG. However, there are key differences between SVG and Flash Player's graphics capabilities. These include core differences in SVG and Flash's rendering model with regards to filters, transforms and text. Additionally, the interchange format needed to be able to support future Flash Player features, which would not necessarily map to SVG features. As such, the decision was made to go with a new interchange format, FXG, instead of having a non-standard implementation of SVG. FXG does borrow from SVG whenever possible. "It is important to note that this specification follows much of the SVG specification format organization as well as copying related concept prose. The SVG specification is available at http://www.w3.org/TR/SVG/. http://www.w3.org/TR/SVG/.