diff options
author | Thomas White <taw@physics.org> | 2021-02-23 09:29:21 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-02-23 09:29:21 +0100 |
commit | 81e718365628cd4666801394627e760d0eb1a728 (patch) | |
tree | 7e0c9ffd4760fc28b31041d89f0346c37afc35f3 /src/crystfelimageview.c | |
parent | d07dac6a42eba56c9fe4b952f334ff7c3fee7b7b (diff) |
CrystFELImageView: Make peak/reflection markers slightly transparent
This allows the pixel values underneath to be read.
Diffstat (limited to 'src/crystfelimageview.c')
-rw-r--r-- | src/crystfelimageview.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/crystfelimageview.c b/src/crystfelimageview.c index 6540635a..ca193c8e 100644 --- a/src/crystfelimageview.c +++ b/src/crystfelimageview.c @@ -420,7 +420,7 @@ static void draw_peaks(cairo_t *cr, CrystFELImageView *iv, y = p->pixel_pitch*(p->cny + p->fsy*f->fs + p->ssy*f->ss); cairo_rectangle(cr, x-this_bs, y-this_bs, 2*this_bs, 2*this_bs); cairo_set_line_width(cr, this_lw); - cairo_set_source_rgb(cr, 1.0, 1.0, 0.0); + cairo_set_source_rgba(cr, 1.0, 1.0, 0.0, 0.9); cairo_stroke(cr); if ( show_cen ) { @@ -428,7 +428,7 @@ static void draw_peaks(cairo_t *cr, CrystFELImageView *iv, cairo_line_to(cr, x+0.2*p->pixel_pitch, y); cairo_move_to(cr, x, y-0.2*p->pixel_pitch); cairo_line_to(cr, x, y+0.2*p->pixel_pitch); - cairo_set_source_rgb(cr, 0.4, 0.4, 0.0); + cairo_set_source_rgba(cr, 0.4, 0.4, 0.0, 0.9); cairo_stroke(cr); } @@ -484,9 +484,9 @@ static void draw_refls(cairo_t *cr, cairo_set_line_width(cr, this_lw); if ( get_redundancy(refl) == 0 ) { - cairo_set_source_rgb(cr, 0.7, 0.0, 0.0); + cairo_set_source_rgba(cr, 0.7, 0.0, 0.0, 0.9); } else { - cairo_set_source_rgb(cr, 0.0, 1.0, 0.0); + cairo_set_source_rgba(cr, 0.0, 1.0, 0.0, 0.9); } cairo_stroke(cr); @@ -495,7 +495,7 @@ static void draw_refls(cairo_t *cr, cairo_line_to(cr, x+0.2*p->pixel_pitch, y); cairo_move_to(cr, x, y-0.2*p->pixel_pitch); cairo_line_to(cr, x, y+0.2*p->pixel_pitch); - cairo_set_source_rgb(cr, 0.0, 0.4, 0.0); + cairo_set_source_rgba(cr, 0.0, 0.4, 0.0, 0.9); cairo_stroke(cr); } @@ -510,7 +510,7 @@ static void draw_refls(cairo_t *cr, cairo_save(cr); cairo_new_path(cr); cairo_move_to(cr, x, y); - cairo_set_source_rgb(cr, 0.0, 0.4, 0.0); + cairo_set_source_rgba(cr, 0.0, 0.4, 0.0, 0.9); cairo_set_font_size(cr, 11*p->pixel_pitch); cairo_scale(cr, 1.0, -1.0); cairo_show_text(cr, tmp); |