processing - strokeWeight not applied to PShape? - Stack Overflow

I loaded a costum shape in Processing and want to fill it and have it have a stroke dynamically eventua

I loaded a costum shape in Processing and want to fill it and have it have a stroke dynamically eventually.

But I'm already stuck on hardcoded values. This is what I have:


PShape img = loadShape("thisimage.svg");
img.disableStyle();
img.setStrokeWeight(14);
img.setStroke(color(#ffa500));
img.setFill(color(#ffffff));


The disableStyle is to remove the original colour of the image. This works fine, I can setFill with any colour. But I can't seem to get it to have a stroke. I don't get any errors or squiggly lines, but no stroke either. What am I missing?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744889189a4599299.html

相关推荐

  • processing - strokeWeight not applied to PShape? - Stack Overflow

    I loaded a costum shape in Processing and want to fill it and have it have a stroke dynamically eventua

    1天前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信