Animate rendering function not call in initialize function

Hi I want to call a renderer function of my first function but the issue is I’m facing is that when I call function from init(); then it produce an error which says that renderer not defined. And if I add function inside the init() function then it works. Your help would be highly appreciation for me.