demo for canvas api