Monks:
Someone casually asked me the other day on the topic of Perl and .pngs. This person was wondering if it was possible to create random pixels of color in order to create pictures (at least muddled pictures,) within given height, and width dimensions (i.e. like 100x100 pixels, and so on.)
After being able to say that I don't know how one could do this, I did some searches on this topic using
super search, but to no avail, did not find anything useful for what I would want to try out.
Basically, my question is: Is there a way to do this? (Create random pictures using random pixels in given dimensions.) If so, is there an easier way to do it using some sort of module as well?
But even if I figured out how to make these pictures with certain Perl code, I still don't know how to interact with my XWindows system on linux. Is there documentation I could read up on to find out how to interact with the linux XWindows environment?
Thanks for any help to either of the questions!
Andy Summers
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.