Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ANSIPrint
#11
The Terminator meets the Verminator... Nice job, but next time take the photo from my best side-arm.

Pete
Shoot first and shoot people who ask questions, later.
Reply
#12
What do you mean, you are always shooting from the right aimed directly at the left!

It is a perfect cartoon, it was also sorta lucky capture shot too Wink

Apologies to Samuel, this is gtetting way off track.

BTW cartoon coloring seems to work best with smallish images scale factor maybe at least a 7.

And of course if it is already a cartoon, not much has to be done with color.

I will pick this up in another thread when I start giffing the images. Thanks to Sammuel and Spriggsy for inspirations.
b = b + ...
Reply
#13
i'm here to report that i have been using your program to check how i'm doing with my "ans" suffix files.  cannot rely on ansilove nor on moebius for it.  there is one file i cannot edit in moebius because it's totally screwed up.  even though ansiprint displays it correctly.  although with the wrong colors but that's at my end.  this is a file that only has the space and the solid block chr$(219), and otherwise ansi escapes to change colors.

i have to confess i created a "draft" of the "ans" file in mtpaint.  imported the palette from "16colo-dot-rs" for the image, and exported to ascii text.  then took that text file as input for a qb64 program that creates the "ans" file.  i'm sure i know what i'm doing.

i have to do it that way because i attempted to write a program that reads attributes from a 16-color "png" file.  i have to use 257 as second value for _loadimage because otherwise this method is totally unpredictable.  i have a file in which the black background color is improperly picked up as attribute 1 for some reason.  then i create another "png" file with the same palette as the other one.  i get the correct attribute 0 for black background from that one.

your program goes along with "xterm" on linux.  but i don't know how to get "xterm" to switch to "cp437" text encoding so it could display solid blocks.
Reply
#14
I asked our chatgpt overlord, and it said:

Quote:To switch xterm to CP437 mode, you can use the xterm command line option -lc or +lc (or --linecharset) followed by the charset name CP437. This option sets the line-drawing charset to CP437.

Here's an example command to start xterm in CP437 mode:


xterm -lc CP437
You can also set the line-drawing charset to CP437 by adding the following line to your .Xresources file:


xterm*lineFont: -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1,xftBig GrinejaVuSansMonoConfusedize=9:antialias=true:hinting=true:rgba=rgbConfusedtyle=Book:weight=Medium
After making changes to the .Xresources file, you can apply the changes by running the following command:


xrdb -merge ~/.Xresources
This configuration will set the line-drawing charset to CP437 in xterm.

Of course, your mileage may vary!
Reply




Users browsing this thread: 1 Guest(s)