Quantcast
Channel: Answers for "Putting RGB Colours into an Array? C#"
Browsing all 5 articles
Browse latest View live

Answer by hexagonius

add new Color(1,1,1,1) as an example for white, full opaque to the list of colors in the array definition.

View Article


Answer by landon91235

Color[] colors = { new Color(0,1,0,1), new Color(1,0,0,1), new Color(1,1,1,1), new Color(0,0,1,1), new Color(1,1,0,1), new Color(0, 0, 0, 1)}; That is your existing array translated into their explicit...

View Article


Answer by hexagonius

add new Color(1,1,1,1) as an example for white, full opaque to the list of colors in the array definition.

View Article

Answer by landon912

Color[] colors = { new Color(0,1,0,1), new Color(1,0,0,1), new Color(1,1,1,1), new Color(0,0,1,1), new Color(1,1,0,1), new Color(0, 0, 0, 1)}; That is your existing array translated into their explicit...

View Article

Answer by zyonneo

From landon912 answer we can also use Color32 Color[] colors = { new Color32(229, 204, 61, 255), new Color32(236, 159, 33, 255), new Color32(156, 190, 15, 255), new Color32(231, 134, 157, 255) }; We...

View Article

Browsing all 5 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>