set shadow programmatically

Added a function to set the shadow programmatically.