How to draw a bezier curve with variable thickness on an HTML canvas?
问题 I want to make a visualization with bezier curves connecting boxes. More important edges should be thicker. Every box has one output but many inputs. Therefore, I want to keep the thickness of the incomit edges constant (to save space) and alter only the thickness of the outgoing edges (of which there is only one per box). This is why I want to draw bezier cureves with different thickness at each end. They shall be rendered on an HTML canvas element. I know context.bezierCurveTo() but that