• Post Reply Bookmark Topic Watch Topic
  • New Topic

Random Colors  RSS feed

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I want the code to generate colors randomly.
thanx.
 
deekasha gunwant
Ranch Hand
Posts: 396
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sumit,
what u need to do is generate random values for red/gree/blue compomnents and then pass them to Color constructor.
Try following code.


regards
Deekasha
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!