summaryrefslogtreecommitdiff
path: root/lib/igt_fb.h
diff options
context:
space:
mode:
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>2016-03-18 17:33:02 +0000
committerMatt Roper <matthew.d.roper@intel.com>2016-03-21 11:47:04 -0700
commita511310244ed82391a45a438b0d7126a8f9c974b (patch)
tree8fa6a860a977b70162d0997b3f75ae931a02d837 /lib/igt_fb.h
parent1716625e1e77c4e42afa3ed7afe4151ae787258d (diff)
lib: fb: add igt_paint_color_gradient_range
This is a helper to draw a gradient between 2 colors. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Matt Roper <matthew.d.roper@intel.com> Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Diffstat (limited to 'lib/igt_fb.h')
-rw-r--r--lib/igt_fb.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/igt_fb.h b/lib/igt_fb.h
index 6cfd1bbd..e8fe3ac4 100644
--- a/lib/igt_fb.h
+++ b/lib/igt_fb.h
@@ -106,6 +106,9 @@ void igt_paint_color_alpha(cairo_t *cr, int x, int y, int w, int h,
double r, double g, double b, double a);
void igt_paint_color_gradient(cairo_t *cr, int x, int y, int w, int h,
int r, int g, int b);
+void igt_paint_color_gradient_range(cairo_t *cr, int x, int y, int w, int h,
+ double sr, double sg, double sb,
+ double er, double eg, double eb);
void igt_paint_test_pattern(cairo_t *cr, int width, int height);
void igt_paint_image(cairo_t *cr, const char *filename,
int dst_x, int dst_y, int dst_width, int dst_height);