convert String to int for blend() function?
in
Programming Questions
•
2 years ago
- String[] blendName = {"BLEND","ADD","SUBTRACT" ,"DARKEST", "LIGHTEST" ,"DIFFERENCE" ,"EXCLUSION" ,"MULTIPLY", "SCREEN" ,"OVERLAY" ,"HARD_LIGHT", "SOFT_LIGHT","DODGE" ,"BURN" };
Is it possible to convert this array of strings into an array of int in order to use them as last parameter of the blend() function?
It seems like this function wants int as last values,but using this:
int(blendName[blendIndex]);
doesn't work.
maybe some bitwise calculation?
how does Processing recognize this words?
1