View some example FeynWeb diagrams, along with their XML code, to give you an idea of what is possible and to help you get started.
A very simple example showing electron-positron elastic scattering. Demonstrates basic usage of vertices and particles.
<feynweb height="300px" width="700px" stylesheet="style_default.fws"> <input id="i1" x="100" y="50"> <label position="w">e+</label> </input> <input id="i2" x="100" y="250"> <label position="w">e-</label> </input> <vertex id="v1" x="250" y="150" /> <vertex id="v2" x="450" y="150" /> <output id="o1" x="600" y="50"> <label position="e">e+</label> </output> <output id="o2" x="600" y="250"> <label position="e">e-</label> </output> <fermion id="eplus1" start="v1" end="i1"> <arrow /> </fermion> <fermion id="eminus1" start="i2" end="v1"> <arrow /> </fermion> <photon id="gamma1" start="v1" end="v2"> <label position="n">γ</label> </photon> <fermion id="eplus2" start="o1" end="v2"> <arrow /> </fermion> <fermion id="eminus2" start="v2" end="o2"> <arrow /> </fermion></feynweb>A more complicated example showing the OZI-suppressed decay of the J/ψ to 3 pions. Demonstrates the grouping of vertices into mesons and the ability to control the spin direction of gluons.
Note that labels may not be displayed well: see the known issues for the current release.
<feynweb height="400px" width="700px" stylesheet="style_default.fws"> <!-- Initial J/Psis--> <nodegroup x="100" y="200" nodegroup-separation="70"> <input id="vc1" type="none"> <label position="c">c</label> </input> <input id="vc5" type="none"> <label position="c" text-decoration="overline">c</label> </input> <label position="w" r="40">J/ψ</label> </nodegroup> <!-- The charm-quark loop vertices --> <vertex id="vc2" x="250" y="150" /> <vertex id="vc3" x="300" y="200" /> <vertex id="vc4" x="250" y="250" /> <!-- Central gluon decay vertices --> <vertex id="top" x="500" y="135" /> <vertex id="mid" x="400" y="200" /> <vertex id="bot" x="500" y="265" /> <!-- The final Pions --> <nodegroup x="600" y="75"> <output id="e1a" type="none"> <label position="c">u</label> </output> <output id="e1b" type="none"> <label position="c" text-decoration="overline">d</label> </output> <label position="e" r="40">π<tspan baseline-shift="super">+</tspan></label> </nodegroup> <nodegroup x="600" y="200"> <output id="e2a" type="none"> <label position="c">d</label> </output> <output id="e2b" type="none"> <label position="c" text-decoration="overline">d</label> </output> <label position="e" r="40">π<tspan baseline-shift="super">0</tspan></label> </nodegroup> <nodegroup x="600" y="325"> <output id="e3a" type="none"> <label position="c">d</label> </output> <output id="e3b" type="none"> <label position="c" text-decoration="overline">u</label> </output> <label position="e" r="40">π<tspan baseline-shift="super">-</tspan></label> </nodegroup> <!-- Charm quarks --> <fermion id="c1" start="vc1" end="vc2"> <arrow /> </fermion> <fermion id="c2" start="vc2" end="vc3" /> <fermion id="c3" start="vc3" end="vc4" /> <fermion id="c4" start="vc4" end="vc5"> <arrow /> </fermion> <!-- Intermediate gluons --> <gluon id="g-top" start="vc2" end="top" /> <gluon id="g-mid" start="vc3" end="mid" /> <gluon id="g-bot" start="vc4" end="bot" spincw="0" /> <!-- Final quarks --> <fermion id="q1a" start="mid" end="e1a" r="200" large="0"/> <fermion id="q1b" start="top" end="e1b" /> <fermion id="q2a" start="top" end="e2a" /> <fermion id="q2b" start="bot" end="e2b" /> <fermion id="q3a" start="bot" end="e3a" /> <fermion id="q3b" start="mid" end="e3b" r="200" large="0" clockwise="0" /></feynweb>