News for hackers. Stuff that matters.
Re:A Proposal to Add 2D Graphics Rendering and Display to C... by angersock on Tuesday January 21, 2014 @01:30AM (#7093784)
It's not quite the Java 2D API, but damned it's close.

Why not just knock off a good API, like that for <canvas>?

Re:A Proposal to Add 2D Graphics Rendering and Display to C... by TheZenPsycho on Tuesday January 21, 2014 @01:44AM (#7093828)
It's covered in the linked document. To paraphrase:

1. It includes some extraneous things such as some CSS stuff. 2. There is some evidence that some of the canvas api may be covered by patents.

Re:A Proposal to Add 2D Graphics Rendering and Display to C... by robin_reala on Tuesday January 21, 2014 @04:22AM (#7094231)
Regarding (1), the mention of CSS refers specifically to SVG, not canvas.
Re:A Proposal to Add 2D Graphics Rendering and Display to C... by TheZenPsycho on Wednesday January 22, 2014 @08:39PM (#7106565)
true, but canvas does have some css things in it, such as, specifically, it uses the Color css submodule.
Re:A Proposal to Add 2D Graphics Rendering and Display to C... by robin_reala on Thursday January 23, 2014 @07:55AM (#7107819)
Oh yeah, good point.
Re:A Proposal to Add 2D Graphics Rendering and Display to C... by adamnemecek on Tuesday January 21, 2014 @01:37AM (#7093806)
AFAIK, Cairo is said to be the bee's knees. As in, I've heard multiple people refer to it as a yardstick of good library design.
Re:A Proposal to Add 2D Graphics Rendering and Display to C... by fyolnish on Tuesday January 21, 2014 @01:55AM (#7093851)
Cairo & <canvas>'s drawing models are rather similar iirc.
Re:A Proposal to Add 2D Graphics Rendering and Display to C... by thristian on Tuesday January 21, 2014 @03:41AM (#7094116)
The <canvas> drawing model is a very thin layer over the Mac OS X Cocoa drawing model (because it was originally developed by Apple as a proprietary extension to Webkit). The Cocoa drawing model is based on the "Display PDF" model, which is a descendant of the "Display Postscript" system used by the original NeXT OS, which of course was derived from the PostScript page layout language.

I think Cairo just borrowed the PostScript drawing model from the start.

Re:A Proposal to Add 2D Graphics Rendering and Display to C... by ygra on Tuesday January 21, 2014 @02:05AM (#7093868)
As are pretty much all immediate-mode 2D graphics APIs, except maybe OpenGL (when used as such).