Hi Everybody,

I'm interested in learning how to write and display SVG in perl to create a simple, lightweight molecule viewer similar to rasmol. The advantage to using SVG would be that (hopefully) I could create quick and effective 3D effects, as well as some other effects which are hard to achieve in available molecule viewers (such as textured or hand-sketched effects). However I am having difficulty finding a good resource on manipulating SVG images in perl and I was hoping that the monks could recommend a web resource or a text book to help me.

Thanks in advance

Ben

Update

Thanks for everybodys' advice so far. I reread my node and thought it would be worth clarifying what I think a molecule viewer would need to do. When first run it would open a window into which molecule representations would be drawn, and a simple shell. You would then enter commands to tell the program to read in a pdb file, make a selection of atoms and then draw them with one of a selection of draw types -eg van der waals spheres, balls and sticks, cartoon/ribbon representations etc. You can rotate the molecule by commands from the shell, and save the SVG file when you have a view/representation you are happy with. The key factors are the elements of interactivity and a display which updates.


In reply to Lightweight Molecule Viewer with SVG by b_hall

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.