Code: Blending two colours across text

I spent a short while this afternoon solving a problem Mat set me: to have two colours and get the text in an NSTextView to blend the two colours in a gradient. The result is here. Simple to do, as well… Only about 20 lines of code (and I use lots of spacing to make things clear).

0 Responses to “Code: Blending two colours across text”


  1. No Comments

Leave a Reply




Creative Commons Attribution-NonCommercial-ShareAlike 2.5 Australia
Creative Commons Attribution-NonCommercial-ShareAlike 2.5 Australia