Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

SVG.pm and Filters

by hackdaddy (Hermit)
on Nov 11, 2004 at 11:18 UTC ( [id://406985]=perlquestion: print w/replies, xml ) Need Help??

hackdaddy has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to create the following SVG output using SVG.pm.
<defs> <filter id="lightingColorC" filterUnits="objectBoundingBox" x="0%" + y="0%" width="100%" height="100%"> <feSpecularLighting in="SourceGraphic" specularConstant="1" sp +ecularExponent="1" surfaceScale="10" style="lighting-color:blue;" lig +hting-color="blue"> <feDistantLight azimuth="45" elevation="45"/> </feSpecularLighting> </filter> </defs>
I can create the Filter element; however, I am unable to create the fe SpecularLighting child element or the fe DistantLight child element. The SVG.pm docs state the fe elements must be children of the Filter element.

Any assistance will be greatly appreciated. Thanks.

Replies are listed 'Best First'.
Re: SVG.pm and Filters
by tachyon (Chancellor) on Nov 11, 2004 at 13:57 UTC
    $Code = USEFULL if defined $Code; $Code++ if length($code) < 200; $Errors = USEFULL if defined $Errors; $Output = USELESS if ! $Code and ! $Errors; $Question = SUB_OPTIMAL if $Output and ! $Code and ! $Errors; if ( $Question == SUB_OPTIMAL ) { warn "Hello?\n"; seek $clarification, SUB_OPTIMAL, QUESTION; require MORE_INFORMATION; }

    cheers

    tachyon

    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: SVG.pm and Filters
by Limbic~Region (Chancellor) on Nov 11, 2004 at 14:40 UTC
    hackdaddy,
    After reading TFM myself, I would have phrased your question this way:

    TFM says that the fe elements must be children of the Filter element, but they don't have any explanation of how to do that. I know what I want to get to, but I have know idea how to write the code. Anyone know of better docs or can provide an example?

    When I can't figure something out from the docs, I tend to check the test suite to see if they have an example. In this case you are in luck - see 18-filter.pl from the test suite.

    Cheers - L~R

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://406985]
Approved by muntfish
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-19 10:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found