Bezier Path with dynamic change of width

戏子无情 提交于 2019-12-21 04:37:19

问题



I want to create bezier path with dynamically changing line's width. I need spending the same amount of color on each part of line. So, longer line should be thinner. And shorter line should be bold. Or, at least, line should change it's width from beginning to the end.
Any ideas how to achieve it?
Thank you.


回答1:


the only way to achieve this is with multiple UIBezierPaths of different thickness and colour.



来源:https://stackoverflow.com/questions/7345251/bezier-path-with-dynamic-change-of-width

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!