Highs and Lows
Hello folks,

Having finished (for now) Dungeon of Danger, I'm looking at my next project: porting Telengard from TRS-80 BASIC to Yab. For this one, I've implented new PRINT statements to work on a View.

However, I realize that I'm going to have to use inverse video (well, not have to, but it would be nice) but I can't figure out how to get that to work.

I know I can DRAW SET BGColor and HighColor to get that classic 'green on black' look, but no matter what I try, I can't get black on green, unless I set BGColor to green, which isn't useful because it turns the entire view's color to green.

I see there's a LowColor, and I have no idea what that's for.

So... is there an easy way to draw text while mixing background/foreground colors?

The only way I can see is to convert your reverse text to an image. The files in the zip are quite ugly, but can change a line of text to an image. Your milage may vary.Wink

Attached Files
.zip   txt-to-img.zip (Size: 50.48 KB / Downloads: 1)
Cool. Thanks. I'llhave a look at it. I don't know if I'll be able to use it, though, because of the way things get placed on the screen. I'm really surprised there's no way of defining a foreground and background color for text.

It's been a while since I've been able to get time to work on this, so hopefully I won't have forgotten everything I've done so far!
There are limitations with bgcolor using on buttons and other Widgets. We Lost here something in yab, back in the days.

But you can make the bgcolor to green and using high and lowcolor to make the Text Black.
"But you can make the bgcolor to green and using high and lowcolor to make the Text Black."

What does low color do, exactly?

But when I change the bgcolor, then the entire view changes to green. I just need the color behind the text to change to green.
Do you have s screenshot of what you want to accomplish?

The editor won't let me insert graphics, so I added two attachments. One is from an Atari screen, where the '2.5' and 'RETURN' are in inverse. The other is from the Apple ][ where 'File handling routines' is in inverse.

Also, at least one Reply button is broken. I don't know if anyone knows that.

Attached Files Thumbnail(s)
I found a rather crude method using images and a separate file to create the images from the text,

see the attatched zip

Attached Files Thumbnail(s)

.zip   Archive.zip (Size: 2.08 KB / Downloads: 6)

Forum Jump:

Users browsing this thread: 1 Guest(s)
Free Web Hosting