Commit Graph

20 Commits

Author SHA1 Message Date
Antonio Carzaniga
9f7ce3e774 rendering statistics are now optional (-v). 2019-07-29 22:57:21 +02:00
Antonio Carzaniga
b519b83bd3 fixed widget deallocation. 2019-07-29 22:49:39 +02:00
Antonio Carzaniga
2c9348be56 per-ball "sprite" cairo surface. 2019-07-29 22:45:32 +02:00
Antonio Carzaniga
d715b99e32 modularized init/destroy functions for graphics system. 2019-07-29 19:25:45 +02:00
Antonio Carzaniga
32cd25bd56 Merge branch 'cairo' into faces 2019-07-29 18:41:23 +02:00
Antonio Carzaniga
d3411b9ab0 fixed minor editing bug. 2019-07-29 15:50:53 +02:00
Antonio Carzaniga
5c9d152eaf disappearing gravity vector 2019-07-29 15:49:42 +02:00
Antonio Carzaniga
370ac137ff added clear (alpha) parameter to draw animation trails. 2019-07-29 15:48:15 +02:00
Antonio Carzaniga
f7706865fe added optional face (image) for balls 2019-07-29 14:21:55 +02:00
Antonio Carzaniga
b2c96f75c1 keyboard-controlled gravity vector 2019-07-28 15:03:27 +02:00
Antonio Carzaniga
e306fffc2a drawing using cairo 2019-07-28 14:55:39 +02:00
Antonio Carzaniga
ea1db822ba improved gtk code.
- replaced deprecated gtk_signal_connect with g_signal_connect.

 - separated drawing code from pixmap trasnfer code, and improved
   expose event handler.
2019-07-05 16:47:29 +02:00
Antonio Carzaniga
89c6a75fe3 added init function for truly uniform random velocity. 2019-07-05 15:58:10 +02:00
Antonio Carzaniga
d74071a339 allowing initial velocity in all directions 2019-06-05 14:51:02 +02:00
Antonio Carzaniga
229b681e2c added colors. 2019-06-05 14:31:11 +02:00
Antonio Carzaniga
c0b9e71eef fixed bug: initial call to draw on non-drawable widget. 2019-06-05 14:20:32 +02:00
Antonio Carzaniga
47ea4fa34a code formatting 2019-06-04 10:18:50 +02:00
Antonio Carzaniga
eba900d9ef added initial velocity and radius ranges and clear/trace factors 2019-06-04 10:13:02 +02:00
Antonio Carzaniga
f46f20aa81 added collisions. 2019-06-03 22:24:06 +02:00
Antonio Carzaniga
ce4e4cbc2d baseline 2019-06-03 10:09:00 +02:00