Live data from Hacker News

Skia: an open source 2D graphics library

skia.org

11–20 of 119 posts

Re: Skia: an open source 2D graphics library

#12

This looks really useful! Does anyone know how this compares to something like Cairo?

Skia (via SkiaSharp) is the rendering backend for my vector graphics diagramming application (https://vexlio.com). I chose it in part because it had much better performance than Cairo when I was testing both. Also the MIT license was more appealing to me than Cairo's LGPL or Mozilla Public License.

Re: Skia: an open source 2D graphics library

#14

For anyone thinking of skipping looking at this one. I was not interested either until I read this part: > It serves as the graphics engine for Google Chrome and Chrome OS, Android, Mozilla Firefox and Firefox OS, and many other products.

Sublime Text afaik.

Re: Skia: an open source 2D graphics library

#15
With all the fuss with "modern" text editors built on top of web engines, I feel the need to remind you all that one of the fastest graphical code editors that I have ever used — SublimeText — was built using Skia for the rendering. I believe many people have noticed how smooth the interface and most of the operations feel, a very good selling point if you want to build a GUI in the future.

Re: Skia: an open source 2D graphics library

#17
I've used it to create a desktop port of http://diep.io/. It's great (easy to use, reasonably documented), but it's a pretty big dependency (I don't remember exactly, but I think like 20 MB or so?). Since diep.io uses the canvas 2d API, porting was pretty straight forward. The performance on desktop is unsurprisingly many times faster than the browser.

Re: Skia: an open source 2D graphics library

#18
post #4

C++ 11, nice. Does anyone use this? And if you do how does it compare to alternatives

Skia is used by Chrome, Android, and Flutter at Google. I believe Adobe and Microsoft also use Skia in various products.

Doesn’t Microsoft have Direct2D for this sort of thing.

Re: Skia: an open source 2D graphics library

#19
post #7

C++ 11, nice. Does anyone use this? And if you do how does it compare to alternatives

Skia is probably the most popular 2D graphics library at the moment. I don't really know why this got on HN now. It's already extremely popular. I use it in a little WIP game engine. It's very pleasant, excellent little library. There's an online jsfiddle-esque demo here https://fiddle.skia.org/ if you want to try it out.

I have a little 2d game that I'd like to port over to Skia. What did you end up using to handle input and audio and other gamey things?

Re: Skia: an open source 2D graphics library

#20

With all the fuss with "modern" text editors built on top of web engines, I feel the need to remind you all that one of the fastest graphical code editors that I have ever used — SublimeText — was built using Skia for the rendering. I believe many people have noticed how smooth the interface and most of the operations feel, a very good selling point if you want to build a GUI in the future.

If I understod correctly (which isn’t certain) Skia is also the rendering backend for chromium. Chromium is used as the rendering bits for electron. Electron is how you make these apps on “web engines”. So all those editors based on web engines likely render through Skia...
Post reply on HN