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
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论