Re: How to shift surface?
- From: Stefan Salewski <mail ssalewski de>
- To: Göran Hasse <gorhas raditex nu>, gtk-list gnome org
- Subject: Re: How to shift surface?
- Date: Mon, 11 Jun 2018 16:11:49 +0200
On Mon, 2018-06-11 at 08:29 +0100, Göran Hasse wrote:
Hello!
I am trying to write a gtk + Cairo application that mimics the
animation in
wikipedias sine graph.
https://en.wikipedia.org/wiki/File:Circle_cos_sin.gif
There was posted an example some time ago -- in multiple versions.
First one did only clear and redraw -- which gave high CPU load. An
improved version of Uli Schlachter used shifting of display to reduce
load. A Nim version of first simple redraw is available here:
https://github.com/StefanSalewski/gintro
Various C codes you may find in this thread, I think first Uli
Schlachter post has a link to the most advanced C version.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]