SharpPlot Reference > SharpPlot Methods > SetEffects Method

SharpPlot.SetEffects Method

Effect list for use by upcoming data series.

Example

pietile = "<defs> <filter id=\"pietile\"> <desc>Produces a 3D "+
"lighting effect suitable for pies and lines</desc> "+
"<feGaussianBlur in=\"SourceAlpha\" stdDeviation=\"12\" "+
"result=\"blur\"/> <feOffset in=\"blur\" dx=\"12\" dy=\"9\" "+
"result=\"offsetBlur\"/> <feSpecularLighting in=\"blur\" "+
"surfaceScale=\"5\" specularConstant=\"1\" specularExponent=\"30\" "+
"style=\"lighting-color:White\" result=\"specOut\"> <fePointLight "+
"x=\"-5000\" y=\"-10000\" z=\"20000\"/> </feSpecularLighting> "+
"<feComposite in=\"specOut\" in2=\"SourceAlpha\" operator=\"in\" "+
"result=\"specOut\"/> <feComposite in=\"SourceGraphic\" "+
"in2=\"specOut\" operator=\"arithmetic\" k1=\"0\" k2=\"1\" k3=\"1\" "+
"k4=\"0\" result=\"litPaint\"/> <feMerge> <feMergeNode "+
"in=\"offsetBlur\"/> <feMergeNode in=\"litPaint\"/> "+
"</feMerge> </filter> </defs>";
sp.IncludeSource(pietile);
sp.SetEffects("filter:url(#pietile)");

Overloads

See also ...

SharpPlot Members


Send comments on this topic
© Dyalog Ltd 2021