The x coordinate to place the object in the canvas. Displaying an image on canvas, Step 2: Drawing. It only draws one rectangle at the same position, over and over again. Position the image on the canvas, and specify width and height of the image: JavaScript syntax: context .drawImage ( img,x,y,width,height ); Clip the image and position the clipped part on the canvas: JavaScript syntax: context .drawImage ( img,sx,sy,swidth,sheight,x,y,width,height ); The basics of a canvas With the