def texture_image(canvas, texture):
 if canvas.hasAlphaChannel():
  canvas = blend_image(canvas)
 return imageops.texture_image(canvas, texture)

def texture_image ( canvas , texture ) : if canvas . hasAlphaChannel ( ) : canvas = blend_image ( canvas ) return imageops . texture_image ( canvas , texture )
repeatedly tile the image texture across and down the image canvas .