Assign colour to elements of an Array (letters)
Any idea how to make all odd letters appear in one colour and all even leters appear in other colour? For example string 'COLOUR' is converted to an array. And then displayed in a way that letters C L and U are of colour red and letters O O and R are of coulour black? Converting string to an array was easy and so is seperating odd from even letters trough for loop. But how to assign colour to individual letters? Any ideas are welcome!
Users Browsing this Thread
There are currently 2 users browsing this thread. (0 members and 2 guests)
Tags for this Thread