开发者

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

开发者 https://www.devze.com 2023-01-30 00:15 出处:网络
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})

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

精彩评论

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