Warned to come up or a police dog would be sent down to get him, Brooks yelled: "Throw the f...g dog at me". He repeated that several times, along with the taunt, "Come and f...g get me, it's a nice night for a swim", before jumping in the river, floating on his back and kicking towards the opposite bank.
About 15m from the rocks on the other side Brooks' bravado deserted him as he started going under the water and yelling for help, eventually disappearing from view, resulting in the Coastguard and rescue helicopter sweeping the river looking for him for over 40 minutes.
After the search was unsuccessful, his family was told that he was missing in the river, but Brooks was later located hiding on Cobden Island.
Mr Greer said Brooks showed no remorse for the searchers or his family, who had been told that he had drowned, saying: "Oh well they'll get over it."
Mr Bradley said Brooks had no reason for his actions.
Ordering a probation report, Judge Gary MacAskill replied: "No reason? Well, let's see if we can find one then."