Allocate new Color Instance in SetColor()

Great sample app, thank you for making it available.
This simple patch addresses a compile issue.