summaryrefslogtreecommitdiff
path: root/demos/radial-test.c
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <ssp@redhat.com>2012-12-07 19:43:53 -0500
committerSøren Sandmann Pedersen <ssp@redhat.com>2012-12-11 08:20:45 -0500
commit54aca22058e8f4daf999b37e5c5e6ddd8e67f811 (patch)
treeaa485e08e212b28334e132566d28fda026bc5372 /demos/radial-test.c
parentfdab3c1b6cd9c5e197ec3f6bc0a03da32880e317 (diff)
demos/radial-test: Add zero-radius circles to demonstrate rendering bugs
Add two new gradient columns, one where the start circle is has radius 0 and one where the end circle has radius 0. All the new gradients except for one are rendered with a bright dot in the middle. In most but not all cases this is incorrect. Cc: ranma42@gmail.com
Diffstat (limited to 'demos/radial-test.c')
-rw-r--r--demos/radial-test.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/demos/radial-test.c b/demos/radial-test.c
index e64f357..203ad68 100644
--- a/demos/radial-test.c
+++ b/demos/radial-test.c
@@ -1,7 +1,7 @@
#include "../test/utils.h"
#include "gtk-utils.h"
-#define NUM_GRADIENTS 7
+#define NUM_GRADIENTS 9
#define NUM_STOPS 3
#define NUM_REPEAT 4
#define SIZE 128
@@ -28,6 +28,9 @@
* centers (0, 0) and (1, 0), but with different radiuses. From left
* to right:
*
+ * - Degenerate start circle completely inside the end circle
+ * 0.00 -> 1.75; dr = 1.75 > 0; a = 1 - 1.75^2 < 0
+ *
* - Small start circle completely inside the end circle
* 0.25 -> 1.75; dr = 1.5 > 0; a = 1 - 1.50^2 < 0
*
@@ -49,15 +52,20 @@
* - Small end circle completely inside the start circle
* 1.75 -> 0.25; dr = -1.5 > 0; a = 1 - 1.50^2 < 0
*
+ * - Degenerate end circle completely inside the start circle
+ * 0.00 -> 1.75; dr = 1.75 > 0; a = 1 - 1.75^2 < 0
+ *
*/
const static double radiuses[NUM_GRADIENTS] = {
+ 0.00,
0.25,
0.50,
0.50,
1.00,
1.00,
1.50,
+ 1.75,
1.75
};