Skip to content

format

typescript
Color.Sub(rhs)

class: Color

description

Subtracts the specified color from the current color and returns a new color.

This method calculates the value for each color channel and does not modify the current color object.

parameter

param_nametypedescription
rhsColorThe color to subtract.

reture

typedescription
ColorA new color object.

code example