Im trying to learn Framer JS. How to I get a layer to centered on the screen. Here is my code:
layerB = new Layer backgroundColor:"#2DD7AA", width:60, height:60, layerB.center()
I cant get the layer positioned in the center. I keep getting "undefined is not an object error
Hey Paresh! Welcome to the community. Indentation is super important in CoffeeScript. The layerB.center() needs to be less indented than the properties you set on a layer (because it's not a property of a layer, it's a method).
oh now I get it.. Thank you very much Joshua. :)
Paresh Ravi No problem!