1. created sawirObject //which will hold all the image templates.
2. created our image arrow //which we defined arrow x y
3. we store it those information into xafidSawir array....// Remember we said xafidSawir.push(arrow);
4. We called our canvas...
---------------------------------------------------------------------------------------------------------------------------------
Now we are going to load the image arrow.png.
ok let's do it..
Beautiful: Hada waxaan u wacnay imagekii arrow.png. You can use it another image but all the files and images must be in Chapter1 folder. Ok.var image= new Image();
image.addEventListener("load", keenStageka, false);
image.src="arrow.png";
function keenStageka()
{
}
Now we learned how to load the image...
As you can see imagekeena waxaan u yeelnay addEventListener and waxaan ku dhahay soo load karee. Adigoo isticmaalayaa function
keenStageka();
Taasi casharka soo socodo ayaan ugu jawaabi doonaaa...
Now functionka keenStageka toloow maxaa ku dhihi doonaa?
<<<Previous Lesson