added a new function wrapper
fixed framebuffer color order