Skip to content

Commit

Permalink
make mask green and opaque
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzLamm committed Jul 12, 2024
1 parent f32c97b commit c41ac0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lasso_3d/_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,8 @@ def _lasso_from_polygon(
mask = mask_via_extension(points, volume_shape)

# add the mask to the viewer
self.viewer.add_image(mask, name="mask")
mask_layer = self.viewer.add_image(mask, name="mask", opacity=0.4)
mask_layer.colormap = "green"

return

Expand Down

0 comments on commit c41ac0b

Please sign in to comment.