added getred, getblue, and getgreen functions, as well as test functions for each.
added getred, getblue, and getgreen functions, as well as test functions for each.