align.left(offset)
Position the layer to the left of its parent. If there is no parent, it will use the Screen. Left only works for the x layer property. It can be used as a property, in states and in animations.
译:把图层置于它的父图层的左侧,如果没有父图层,就默认放在屏幕左侧。这个方法只对x属性起作用。它也可以作为状态或者动画中的一个属性值。
Arguments(参数)
offset — 一个数字(可选)
layerA = new Layer
x: Align.left
layerB = new Layer
x: Align.left(100) # 100 pixels from the left