withRed

@NotNull
open fun withRed(red: Int): @NotNull Color

Creates a new colour with the given new [red] value.

Return

the new colour

Parameters

red

the new red value