layer.midY < number>

The vertical center for the layer.
译:层的垂直中心

layerA = new Layer
    x: 100
    y: 100
    width: 100
    height: 100

print layerA.midY
# Output: 150 

layerA.midY = 500
print layerA.y
# Output: 450

results matching ""

    No results matching ""