You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to use the custom path tool to create some shapes that are filled. When I attempt to chain the .fill('#fff') method, I'm getting an error. Is this possible, or am I doing something wrong?
var fill = textures.paths().d(function(s){
// This path is generated by another function that does the sizing
var path = 'M24,3.5999999999999996 L23.1,5.3999999999999995 L23.700000000000003,6.8999999999999995 L25.5,7.5 L27,6.300000000000001 L27,4.199999999999999 z';
return path
})
.size(30)
.strokeWidth(0.5)
.fill('#fff')
.background('#000');
The text was updated successfully, but these errors were encountered:
Hi, thanks for reporting the issue.
Actually method fill is not implement for paths, this is not clear in the docs, sorry.
I am going to fix that in the next days.
@riccardoscalco Huh, yeah that doesn't look right. I was trying to simplify my example, and I must have mis-copied something.
Here's what I'm really trying to accomplish:
I'm trying to get the shapes filled with white is all. I can do this by just creating a pre-existing pattern def in my SVG, but I was trying to get it to work completely in textures.js and couldn't figure it out. Thanks for the help!
I'm attempting to use the custom path tool to create some shapes that are filled. When I attempt to chain the
.fill('#fff')
method, I'm getting an error. Is this possible, or am I doing something wrong?The text was updated successfully, but these errors were encountered: