Replaces alpha, leaving RGB unchanged. An out of range value triggers an assert in the debug build. a is a value from 0f to 1f. a set to zero makes color fully transparent; a set to 1.0 makes color fully opaque. @param a alpha component of color @return this
(float a)
| 271 | * @return this |
| 272 | */ |
| 273 | @NotNull @Contract("_ -> this") |
| 274 | public Paint setAlphaf(float a) { |
| 275 | return setColor4f(getColor4f().withA(a)); |
| 276 | } |
| 277 | |
| 278 | /** |
| 279 | * <p>Replaces alpha, leaving RGB unchanged. An out of range value triggers |
no test coverage detected