operator -(Color, Color)
Subtracts color b from color a. Each component is subtracted separately.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Operator
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public static Color operator -(Color a, Color b)
Parameters
Returns
Type | Description |
|---|---|
| Color |
Examples
using UnityEngine;public class Example : MonoBehaviour{ void Start() { Color redColor = Color.magenta - Color.blue; }}