What is wrong with this OSL shader?
It seems that you missed one of the following settings:




Diffuse color of you OSL input node
Tick Open Shading Language in the render settings
Set Render device to CPU (GPU can't handle script nodes)