setRed

abstract fun setRed(red: Int)

设置此颜色的红色分量。

Parameters

red

一个范围在 [0..255] 内的整数。超出范围的值将被截断。