所以我似乎找不到改变画板背景颜色的方法。
This is what i have currently just missing the method to set the color.
var doc = context.document;
var artboard = MSArtboardGroup.new()
var artboardFrame = artboard.frame()
artboardFrame.setX(x)
artboardFrame.setY(y)
artboardFrame.setWidth(w)
artboardFrame.setHeight(h)
artboard.hasBackgroundColor = true;
doc.currentPage().addLayers([artboard])
此草图引用链接可能有帮助(对我没有帮助) http://developer.sketchapp.com/reference/class/
最佳答案
artboard.backgroundColor = MSColor.colorWithSVGString("#FFCC00");
关于javascript - Sketch 3 插件更改画板颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38379884/