开发者

How to fill a triangle with gradient using three colors? (maybe using GD)

What is the best way to fill a triangle with gradient, which is formed using three triange vertices. (for example, {RED, BLUE, GREE开发者_StackOverflow社区N}) Implementation language is ruby. Maybe there're some gems or you know such implementation in GD or GD2 library.


You can use RMagick. It's a ruby interface for imagemagick

Try using the sparse_color function

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜