레퍼런스 setAlpha()

setAlpha()

Sets the alpha (transparency) value of a color.

The range depends on the colorMode(). In the default RGB mode it's between 0 and 255.

예제

구문

setAlpha(alpha)

매개변수

alpha
Number:

the new alpha value.

Notice any errors or typos? Please let us know. Please feel free to edit src/color/p5.Color.js and open a pull request!

관련 레퍼런스