最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

processing - strokeWeight not applied to PShape? - Stack Overflow

programmeradmin4浏览0评论

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?

发布评论

评论列表(0)

  1. 暂无评论