Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

console graphics

by LloydRice (Beadle)
on Feb 14, 2021 at 23:19 UTC ( [id://11128385] : perlquestion . print w/replies, xml ) Need Help??

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

Can somebody recommend a console graphics package? I do mean graphics, not text, but I don't need the 3D complications of PDL-graphics.

Replies are listed 'Best First'.
Re: console graphics
by kschwab (Vicar) on Feb 15, 2021 at 03:27 UTC
Re: console graphics
by james28909 (Deacon) on Feb 15, 2021 at 04:20 UTC
    There is also WxPerl and Win32::GUI.

      I'll check these out. Thanks.

Re: console graphics
by Discipulus (Canon) on Feb 15, 2021 at 11:50 UTC
    Hello LoydRice,

    in addition to Tk take a look to Prima too and to my biblitheca


    There are no rules, there are no thumbs..
    Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
Re: console graphics
by BillKSmith (Monsignor) on Feb 15, 2021 at 14:57 UTC
    The best solution is to choose one of the GUI frameworks already suggested. Unfortunately, they all have a steep learning curve. Under Windows, you can display almost any file by letting the shell choose the default viewer for the type of file. In your case, (system filename.pdf). I am not sure that this will meet your requirements, but it is so easy that it is worth a try.
Re: console graphics
by kcott (Archbishop) on Feb 16, 2021 at 05:33 UTC

    G'day LloydRice,

    You might like to look at the code I posted recently in "Re: Losing my memory".

    That was dealing with another issue, but seems to have all the elements that you are looking for: "writing images"; "in a newly created window"; and Tk::Canvas handles "colored shapes and text" as well as images.

    If you want to display images that are already on your system, take a look at Tk::FileSelect. And, Tk has documentation for all of the basic widgets.

    — Ken

Re: console graphics
by etj (Deacon) on Apr 18, 2022 at 19:38 UTC
A reply falls below the community's threshold of quality. You may see it by logging in.