- Home /
Question by
Chocolade · Jul 14, 2020 at 12:11 AM ·
colorcolor changemixing
How can I mix colors from a given array of colors ?
I have array of basic colors and I want to mix out of it any colors available. For example to take from the array the red green and blue and generate one color of it then to mix blue black and white and to create in the end array or list of all mixed colors.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MixColors : MonoBehaviour
{
private void Start()
{
Color[] colors = { Color.green, Color.red, Color.white, Color.blue, Color.yellow, Color.black };
}
private void Update()
{
}
}
Comment