setColorFrom method
- Color color
Sets the current drawing color using a Color object.
This color will be used for subsequent drawing operations.
color
: The Color to set.
Implementation
void setColorFrom(Color color) {
setColor(color.r, color.g, color.b, color.a);
}