Skip to content

Tag: paperjs

Color gradient renders as black

I’m attempting to use paper.js with javascript directly: and cannot get gradients to work. Instead of a color gradient the line just appears to be black. This occurs for all shapes, so I’m pretty sure I’m somehow setting up paper.js incorrectly. Any help would be appreciated! Here’s an example codeblock: jsfiddle: Answer In your example you referenced library