Skip to content

Commit

Permalink
linear LUT gradient on 2/3rd of the array
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-TBT committed Sep 17, 2024
1 parent d770a16 commit 6312fb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions omeroweb/webgateway/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2145,8 +2145,8 @@ def luts_png(request, conn=None, **kwargs):
new_img[i*10:(i+1)*10, :, 2] = numpy.array(b)

# Set the last row for the channel sliders transparent gradient
new_img[-10:, :, :3] = 0
new_img[-10:, :, 3] = numpy.arange(255, -1, -1)
new_img[-10:] = 0
new_img[-10:, :180, 3] = numpy.linspace(255, 0, 180, dtype="uint8")

image = Image.fromarray(new_img)
# Save the image to a BytesIO stream
Expand Down

0 comments on commit 6312fb1

Please sign in to comment.