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).
Search
About Me
I'm an AIESECer.
I'm a recent graduate of a Business IT degree from UNSW.
I used to be apathetic; now I want to change the apathy I see around me.
I want to make the world a better place... somehow. These are my notes and thoughts on that journey.

Latest Comments
RSS- sahajamuslima on the post Two weeks in Pakistan
- Simone on the post MacBook Pro battery problems
- Jeremy Higgs on the post Two weeks in Pakistan
- sahajamuslima on the post Two weeks in Pakistan
- Davin on the post MacBook Pro battery problems
- Jackie on the post MacBook Pro battery problems
- Brandon on the post MacBook Pro battery problems
- Barbara on the post A fix for my SuperDrive problems!
- Luke on the post A fix for my SuperDrive problems!
- Nino on the post Foxtel iQ







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