I'm the author of Gnome15, and was just doing some vanity searching and came across this post.

Love the hypno-effect, I think I have a headache now though. And the text problem probably isn't PEBCAC ;) There is a bug with that call, mainly when you supply a width/height. This is fixed in 0.8.2 which is building now. To draw some text, you would do something like :-

$page->Text("Hypnotoad - Our Lord And Master", 50, 0, 220, 240, "center,center,wrapword");

That would draw text in a 220x240 box located at x=50,y=0, with the text wrapped at word boundaries, vertically and horizontally centered.

You can also change the font :-

$page->SetFont("24", "Sans", "normal", "normal");

It's great to see someone else using the API and if you've got any other suggestions to improve it, please feel free :)

Brett


In reply to Re: Net::DBus/Logitech G19 Meditator by tanktarta
in thread Net::DBus/Logitech G19 Meditator by cavac

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.