Live data from Hacker News

Skia: an open source 2D graphics library

skia.org

51–60 of 119 posts

Re: Skia: an open source 2D graphics library

#52
post #42

Aseprite switched to Skia a year or so ago ( https://github.com/aseprite/aseprite ). Regret it. Google doesn't care to maintain CMake support for it, so there goes pulling it in via source and building as a library dependency. https://github.com/aseprite/aseprite/issues/1598#issuecommen... You may ask, "why don't you just write your own CMake module like everyone else?" I've tried. I think the build system changed a…

I’d be grateful to see some sort of build log from a successful run with this frankenbuilder and try making a traditional BSD Makefile.

Re: Skia: an open source 2D graphics library

#53
post #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.

Looks like a nice project. For my own (web development) kind of projects I love to diagram infrastructure, Classes, etc.

But, I do nearly all my work on Linux -- which is a pity because I'd love to try out a tool like Vexlio.

For now I guess I'll continue to stick with yEd, because it actually works everywhere (java works).

Re: Skia: an open source 2D graphics library

#54
post #48

Earlier quoted context omitted.

Out of curiosity, aside from the obvious disadvantages you mentioned, what advantages does it bring to the table? Long-time casual user of Aseprite. To be honest, I never knew it was open source until just now, I actually own a couple copies.

Allegro, SDL2, SFML, et al. do more things (audio, joystick support, keyboard/mouse events) across platforms. Skia does one thing really well, 2D graphics. There is a ticket open for building an abstraction layer @ https://github.com/aseprite/aseprite/issues/139 In terms of Aseprite: > > But what made it the choice over Allegro 5, SFML, and SDL2? > through all these years I reached to the conclusion that you need ful…

OK, I agree with the sentiment. SDL2 is probably the closest to doing the right things, but even then you're on your own with the stylus APIs mostly.

So far, the only library I've used that can properly abstract graphics tablets across platforms is Qt, and in the past it has been sometimes rough around the edges with support for it. I think on Windows it is still using the Wintab32 API and not the newer Windows 8 Ink APIs, for example.

Re: Skia: an open source 2D graphics library

#56

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

That's the first question that occurred to me so I web-searched.

Seems it is faster and has a broader API. I sort of expected that Raph Levien(1) might have contributed or that Cairo would be part of the base of Skia. But apparently not.

(1) works at Google and wrote Cairo

Re: Skia: an open source 2D graphics library

#57
post #7

Earlier quoted context omitted.

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?

You might look at https://sciter.com/ Which apparently uses Cairo, Direct2D or Skia depending on the platform.

Re: Skia: an open source 2D graphics library

#58
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.

Nice but got "Failed to run, possibly violated security container"

Re: Skia: an open source 2D graphics library

#59

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.

For xi-editor I considered Skia but ultimately decided to write my own OpenGL renderer. I think Skia would have worked, but the dependency was heavyweight and I'm able to tweak my renderer (for example, it gets linear-sRGB color blending right, while Skia uses an approximation). I have a draft blog post on this in the queue, but juggling just a few too many things at the moment.

Re: Skia: an open source 2D graphics library

#60

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

That's the first question that occurred to me so I web-searched. Seems it is faster and has a broader API. I sort of expected that Raph Levien(1) might have contributed or that Cairo would be part of the base of Skia. But apparently not. (1) works at Google and wrote Cairo

I did not write Cairo, I wrote libart, and that was a long time ago. I'm good friends with several of the Skia authors, but don't actively work on it myself.
Post reply on HN