How to create gradient object with Raphael

前端 未结 2 1641
一向
一向 2020-12-30 05:25

I was trying to use Raphael JS graphics library. I would like to use the attribute gradient which should accept an object. Documentation says to refer to SVG specs. I found

2条回答
  •  清酒与你
    2020-12-30 05:45

    UPDATE: Rewritten for the latest Raphael API:

    
    
    
      
      Linear Gradient
      
    
    
      
    
    
    

    The documentation for the new attr() API is found here.

提交回复
热议问题