Canvas.image <字符串>

Sets the background image of the canvas. You can set it as a local path, or a link. The image will always fit to cover the canvas, and will never be stretched.
译:给图层设置背景图片,你可以写一个本地路径也可以写一个线上链接。这个背景图片将会覆盖整个画布,而且不会被拉伸。

# Local images 
Canvas.image = "images/background.png"

# Hosted images 
Canvas.image = "http://framerjs.com/background.png"

results matching ""

    No results matching ""