Language Selection

English French German Italian Portuguese Spanish

Cairo feels a lot like OpenGL

Filed under
Software

I got a simple spike test done for PyCairo usage. Mostly this is just me figuring out how PyCairo works and how it and PyGTK interact. No big deal right now, it takes turtle commands from the turtle object's queue (produced by Python source running in a background thread) and translates them into simple Cairo operations. Does scaling and centering so that the resulting image is always on-screen, but that's about it.

Cairo is lot closer to Turtle graphics than PyGTK. It basically feels like a cut-down version of OpenGL... which makes me want to reach for OpenGL when I'm working with it. Cairo also feels a lot like Turtle graphics Smile , simplistic state, not much feedback support. Should see whether GooCanvas or the like allows for higher-level operations (e.g. easy drag and drop, selections, that kind of thing) without making it hard to get back to the base level.

More Here




More in Tux Machines

New Releases

Notifications Without User Interaction on Ubuntu Are Annoying

The Unity desktop environment has a simple and rather ineffective system notification mechanism and it looks like that's not going to change, not even with the arrival of Unity 8. Read more

Librem Linux Laptop Drops NVIDIA Graphics But Still Coming Up Short Of Goal

One of the oddest things I found about the crowd-funded Librem 15 laptop when writing about it last month was that it wanted to be open-source down to the component firmware/microcode yet they opted to ship with a NVIDIA GPU. In an updated earlier this month, at least they came to their senses and dropped the discrete NVIDIA GPU. While I have no problems recommending NVIDIA graphics for Linux gamers and those wanting the best performance, that's only when using the proprietary drivers, and certainly wouldn't recommend it for a fully open-source system -- NVIDIA on the desktop side doesn't do much for the open-source drivers, let alone down to the firmware/microcode level. Instead the Librem folks have opted to upgrade the design to using an Intel Core i7 4770HQ processor that features more powerful Intel Iris Pro 5200 Graphics, which isn't as powerful as a discrete NVIDIA GPU but at least is more open-source friendly. Read more

Ruby 2.2.0 Released

We are pleased to announce the release of Ruby 2.2.0. Ruby 2.2 includes many new features and improvements for the increasingly diverse and expanding demands for Ruby. Read more