The Gnome Time Tracker
Update:This lot is all rather outdated! Please check out hamster experiments in github (there is also a tutorial)!
I’ve cleaned out the hamster.graphics module so that it now can be easily dropped in in any project to add drawing and animation in cairo.
November 27, 2009
Do you want to comment?
Comments RSS and TrackBack URI
Does this handle region invalidation?
what’s there to handle?
It seems that isn’t working on any computer … is not working on my laptop but it’s working on my desktop. On my laptop it just appears with no animation.
My laptop is with Ubuntu Karmic and my desktop with Debian and works fine.
As I don’t see any errors or tracebacks … I can say what is happening, you have a clue?
That could be the bug i can reproduce myself either – that cairo does not draw if the coordinates are floats. You could maybe try out two things for me and get back:
1. Turn the antialiasing on (comment out line 156 in the graphics.py in attached archive)
and see if that maybe solves it
2. If not, Then in line 234 turn “rect.x, rect.y” into “round(rect.x), round(rect.y)”
In git master the lines have already shifted, so please try it out on the archive files.
Just turning the anti-aliasing on fix the problem. Also just adding round fix the problem also.
Great 🙂 I am playing with your code right now, sweet 😀
cool, i set the antialiasing back on in git (and also in the archive). if during your playing you come up with some flashy simple demo – please do contribute back – will update the default minimalistic example 🙂
Sorry, the comment form is closed at this time.
Blog at WordPress.com.