processing rgb sample