Guest User

Untitled

a guest
Jul 20th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. public Color[] ColorsArray
  2. {
  3. get
  4. {
  5. string[] hex = Colors.Split(',');
  6. Color[] colors = new Color[hex.Length];
  7.  
  8. for (int i = 0; i < hex.Length; i++)
  9. {
  10. colors[i] = Color.FromHex(hex[i].Trim());
  11. }
  12.  
  13. return colors;
  14. }
  15. }
Add Comment
Please, Sign In to add comment