Setting Value to the Opacity

edited May 2016 in Programming Questions

I am having some trouble setting the value to the opacity.

float value = 0;

//Other Code I am trying to set float value to the opacity of 0.

value = 227, 222, 197, 0;

I tried with parenthesis and its saying syntax, missing parenthesis or semicolon

Tagged:

Answers

  • You can only store one number in primitive datatypes. You can use composite datatypes to store variables in a "bundle". One very common composite datatype is array. See the reference for more information on arrays

Sign In or Register to comment.