Blur custom code

Hi can anyone demonstrate how to make a custom blur code or in other words a script that does Blur but that we can modify instead of using the blur effect that is preset in 2D Filter.

Thanks