"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
Es Tresidder wrote:I don't know what the values are that are used for the start and end colors.
Es Tresidder wrote:So am I right in thinking that the "red" I have defined here is not necessarily anything like the red that I would see on a rose, but just a random color picked from a list of 255 options?
Why give it three colours to blend to produce the colour, why not just give it one colour for the start colour and one for the end colour?
Because your eyes have three kinds of colour receptor, which are most sensitive to red, green and blue light. That is why David said "that's how color works."Es Tresidder wrote: . . . Why give it three colours to blend . . .?
Code executes in order: you tell us.Then what does it do? For endColor does it choose three more random colours and blend these?
Consider Paul's rocket mass heater. |