Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/svg/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Svg 如何在Adobe Illustrator中更改对象不同部分的笔划颜色?_Svg_Adobe Illustrator - Fatal编程技术网

Svg 如何在Adobe Illustrator中更改对象不同部分的笔划颜色?

Svg 如何在Adobe Illustrator中更改对象不同部分的笔划颜色?,svg,adobe-illustrator,Svg,Adobe Illustrator,我使用Adobe Illustrator中的钢笔工具制作了一个对象,我想改变笔画的颜色,使25%的笔画为颜色:#4885ed,25%为颜色:#3cba54;25%为颜色:#f4c20d,其余为颜色:#db3236。 有办法做到这一点吗? 对象: 我没有为此使用Illustrator。我使用的是stroke dasharray和stroke dashoffset如下: 我正在使用Adobe Illustrator CC。到目前为止,您尝试了什么?你能把你的密码寄出去吗?如果你不是在寻找一种程序

我使用Adobe Illustrator中的钢笔工具制作了一个对象,我想改变笔画的颜色,使25%的笔画为颜色:#4885ed,25%为颜色:#3cba54;25%为颜色:#f4c20d,其余为颜色:#db3236。 有办法做到这一点吗? 对象:


我没有为此使用Illustrator。我使用的是
stroke dasharray
stroke dashoffset
如下:



我正在使用Adobe Illustrator CC。到目前为止,您尝试了什么?你能把你的密码寄出去吗?如果你不是在寻找一种程序化的方法,那么这个问题对于S.O.来说是离题的,你会更幸运地得到关于感谢的答案,但是西部,即古吉拉特邦有点混乱。你能给我svg文件,这样我就可以用Microsoft Word打印它了吗?谢谢你接受我的回答。我已经更新了代码,现在样式在SVG元素中。因此,您可以将SVG复制到.SVG文档中,然后在Illustrator上打开它。然而,可能存在一个问题。我已经在路径长度的基础上计算了
stroke dasharray
stroke dashoffset
的值。若你们改变路径,你们可能会改变它的长度,这可能会毁掉一切。最好先用SVG而不是图像,还有一个问题:我没有AdobeIllustratorCC。但是illustrator的旧版本无法理解
stroke dasharray
stroke dashoffset
我将代码粘贴到记事本中,并将其保存为Map.svg。但当我在Chrome中打开它时,它显示:此页面包含以下错误:
第46行第47列的错误:未定义href on use的名称空间前缀xlink
下面是第一个错误之前的页面呈现
#印度{填充:无;笔划数组:641.415 1924.245;笔划宽度:5px;}它在Adobe Illustrator中完全打开。