diegomura / diegomura/react-pdf

Canvas LinearGradient Add Colors (Stop is not function)

Open
#1,697 4 comments 4 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
16.8k
Forks
1.3k
Avg merge
5h 6m
Merged PRs (30d)
52

Description

`
painterObject
.save()
.moveTo(80, 6)
.lineTo(20, 6)
.lineTo(20, 14)
.lineTo(80, 6)
.lineWidth(1)
.linearGradient(0, 0, 50, 10)
.stop(0, "#000")
.stop(1, "#fff")
.fill()
}
/>`

Please help me to adjust LinearGradient with multiple colors.


![image](https://user-images.githubusercontent.com/31427253/151578336-5261fa26-7377-4ce2-aaeb-c4bc85262391.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.