color buffer function