Skip to content

How do I extract the individual hsv values?(urgent) #1920

Answered by laurensvalk
sofalights asked this question in Q&A
Discussion options

You must be logged in to vote

You can do it as follows:

color = left_color_sensor.hsv(surface=True)

color.h # this is the hue, and so on.

In the next release, iterating like you tried will also be supported.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@sofalights
Comment options

Comment options

You must be logged in to vote
3 replies
@sofalights
Comment options

@laurensvalk
Comment options

@sofalights
Comment options

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