Skip to content

Getting LUT colors for an arbitrary value #954

Answered by JeffPS13
JeffPS13 asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks, Marco. You pointed me in the right direction. This works.

rgb = [0.0, 0.0, 0.0]

# Get the color at index k 
self.lut.GetColor(k, rgb)

# Print the RGB value
print(f"The color at index k is: RGB({rgb[0]}, {rgb[1]}, {rgb[2]})")``

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@JeffPS13
Comment options

@marcomusy
Comment options

@JeffPS13
Comment options

@JeffPS13
Comment options

Answer selected by JeffPS13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants