transfer func via canvas