gpt4 book ai didi

javascript - Sketch 3 插件更改画板颜色

转载 作者:行者123 更新时间:2023-12-03 06:32:36 25 4
gpt4 key购买 nike

所以我似乎找不到改变画板背景颜色的方法。

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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com