Create a custom texture from code?

I need to create a custom texture from code, just 1x1 pixel with a custom colour. Is this possible in unity?

Thanks in advance, ng93

http://unity3d.com/support/documentation/ScriptReference/Texture2D.Texture2D.html