Version: 2019.3
  • C#

Color32 Constructor

Suggest a change


Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.


Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.



public Color32(byte r, byte g, byte b, byte a);


Constructs a new Color32 with given r, g, b, a components.

using UnityEngine;

public class Example : MonoBehaviour { Color32 color = new Color32(64, 128, 192, 255); }

Did you find this page useful? Please give it a rating: