-
Notifications
You must be signed in to change notification settings - Fork 220
Open
Labels
Description
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');
Reactions are currently unavailable