Reputation: 5016
From the p5 docs, it looks like there are methods to set components of color, but none to get them.
Given an object of class p5.Color, how do I get the red component of that color?
Upvotes: 0
Views: 605
Reputation: 42176
You can use the red()
, blue()
, and green()
functions.
More info can be found in the reference.
Upvotes: 1