Layers

In this chapter, we’ll look at all the different properties a layer can have.

As you know, layer properties describe how a layer appears, and you can set them when creating a layer.

layerA = new Layer
    width: 300, height: 300
    x: 20, y: 20

You can also define or override the properties of an already existing layer, including layers that were imported, or that were created in Design.

layerA.backgroundColor = "red"
layerA.borderRadius = 50
layerA.opacity = 0.8
layerA.height = 100