An assortment of OSL shaders for your perusal

Right. The burning question then is: What would the code be for that?