gitbrent / PptxGenJS

Create PowerPoint presentations with a powerful, concise JavaScript API.
https://gitbrent.github.io/PptxGenJS/
MIT License
2.87k stars 633 forks source link

Line Gradient Support #93

Open rwhitmore90 opened 7 years ago

rwhitmore90 commented 7 years ago

Is there a way to set the color of a line shape to a gradient?

gitbrent commented 7 years ago

Hi @rwhitmore90 ,

Thanks for the question.

There is not presently any color options for gradients.

rwhitmore90 commented 7 years ago

Is it possible to implement something manually? My problem is part of our master template requires a line with a gradient.

I found this link which shows the key part is the tag http://www.brandwares.com/bestpractices/2016/05/xml-hacking-graduated-color-table-borders/

</a:gs> </a:gs> </a:gs> </a:gsLst> </a:gradFill> </a:ln>

gitbrent commented 7 years ago

Hi @rwhitmore90 ,

There's no way to pass in custom XML, could you use an image instead of a line as a workaround?

pstoll commented 6 years ago

This would be addressed by my implementation I reference in #102

jchambondynadmic commented 5 years ago

Any news about this ?