IColorOperations interface
đ Descriptionâ
Describes the operations interface for the color function.
đ Type declarationâ
interface IColorOperations { manipulate: (manipulation: (color: Color) => Color, condition?: boolean) => IColorOperations;Function makeBlackOrWhite: (condition?: boolean) => IColorOperations;Function makeUnclear: (color: string) => IColorOperations;Function }
đąī¸ Hover with the mouse over a property name for a tooltip with the description of that property. Click it for more information.
âļī¸ Functionsâ
đ§ makeBlackOrWhiteâ
Evaluates the color and makes it black or white.
Signatureâ
(condition?: boolean) => IColorOperations
Parametersâ
| Name | Type | Optional | Description |
|---|---|---|---|
condition | boolean | Yes | Specifies an optional condition. When this argument is false, the operation is not applied. |
Return valueâ
Returns a reference to the IColorOperations object.
đ§ makeUnclearâ
Specifies a color in case the color is transparent.
Signatureâ
(color: string) => IColorOperations
Parametersâ
| Name | Type | Optional | Description |
|---|---|---|---|
color | string | No | Specifies the color to use. |
Return valueâ
Returns a reference to the IColorOperations object.
đ§ manipulateâ
Manipulate a color.
Signatureâ
(manipulation: (color: Color) => Color, condition?: boolean) => IColorOperations
Parametersâ
| Name | Type | Optional | Description |
|---|---|---|---|
manipulation | (color: Color) => Color | No | Specifies the color manipulation function. |
condition | boolean | Yes | Specifies an optional condition. When this argument is false, the manipulation is not applied. |
Return valueâ
Returns a reference to the IColorOperations object.