Search found 5510 matches

by counting_pine
Sep 22, 2005 21:56
Forum: Tips and Tricks
Topic: BMP "Depalettiser"
Replies: 8
Views: 4452

Thanks for the comments, everyone:) The 256-colour picture is the original. Monkey Island was made in around 1990, when the graphics for most games were 320x200, with 256 colour graphics. Feel free to take a 24-bit picture of your own, reduce it to 8-bit, and try the program on it, to see how well i...
by counting_pine
Sep 22, 2005 5:57
Forum: Tips and Tricks
Topic: BMP "Depalettiser"
Replies: 8
Views: 4452

There are many programs available that let you dither a 24-bit image down to 256 colours. But the process of dithering an image leaves artifacts in it. I haven't seen any programs around that try and reverse the process. Of course it's pretty much impossible to get back what you started with, but yo...
by counting_pine
Sep 22, 2005 4:02
Forum: Tips and Tricks
Topic: BMP "Depalettiser"
Replies: 8
Views: 4452

BMP "Depalettiser"

I made a program that attempts to 'smooth out' the dithering caused by converting a 24-bit BMP to 8-bit. Basically, it just smoooths the image using a (1,1,1, 1,2,1, 1,1,1) convolution matrix (i.e. takes the average of all the adjacent pixels, plus itself twice) But the trick is, it only includes a ...
by counting_pine
Sep 04, 2005 17:20
Forum: General
Topic: TAB doesn't work when using PRINT #....
Replies: 1
Views: 753

TAB doesn't work when using PRINT #....

(I posted this bug on SourceForge a while back, but it didn't seem to get any response) TAB doesn't do anything when used in a "PRINT #filenum, ...." statement. Perhaps the easiest way to see it is with the following code, although the same thing happens with files too: open "con" for outp...
by counting_pine
Aug 11, 2005 2:07
Forum: Beginners
Topic: 24-bit bloading woes
Replies: 11
Views: 2454

You can actually make 32-bit BMPs using the version of Paint that comes with Windows XP.
If you open a transparent PNG into Paint and then save, without editing, as a "24-bit Bitmap", it will save it as a 32-bit bitmap with an alpha channel.
by counting_pine
Aug 09, 2005 19:14
Forum: Beginners
Topic: Square Root
Replies: 29
Views: 4739

Heh, just noticed, Algorithm and Logarithm are anagrams of each other (assuming my spelling's correct). ALGORITHM: A specific set of instructions for carrying out a procedure or solving a problem LOGARITHM: Er, for now, just substitute for the word "thingy" Well in any case, you don't need to know w...
by counting_pine
Aug 08, 2005 22:17
Forum: Beginners
Topic: Square Root
Replies: 29
Views: 4739

I think anyone who wants to be a programmer has to, at some point, get to grips with this simple concept: For a computer, some things take longer to do than others. As a simple example, addition is a lot easier and quicker than divison - just try doing both with large numbers on paper. The computer ...
by counting_pine
Jul 21, 2005 0:28
Forum: General
Topic: Delay Function? [Not Sleep]
Replies: 12
Views: 2470

Re: Alternative approach

Is it a realtime game? If so, here's a method I've use to great success. DO t# = TIMER ' All game handling routines go here ' ... ' ... DrawGame PageFlip ' If game handling took less than a 24th of a second, then hold on a moment DO: LOOP UNTIL TIMER > t# + .04 ' repeat until the user quits LOOP UN...
by counting_pine
Jul 20, 2005 19:27
Forum: General
Topic: Using BLOAD to to load BMPs as Sprites...
Replies: 6
Views: 1716

Yes, you're right. It is &HRRGGBB (big endian), although, in Visual Basic and QBASIC it's &HBBGGRR (little endian). Probably the easiest way to check is PRINT HEX$(RGB(0,0,255)) 'Blue In FB this gives FF, while in VB it gives FF0000. (In QB there is no RGB command, but red is...
by counting_pine
Jul 20, 2005 18:54
Forum: General
Topic: Delay Function? [Not Sleep]
Replies: 12
Views: 2470

I have to say, I'm not a big fan of the DO ... LOOP methods of adding a delay. Doesn't it put an unnecessary load on the CPU?
by counting_pine
Jul 19, 2005 14:14
Forum: General
Topic: Using BLOAD to to load BMPs as Sprites...
Replies: 6
Views: 1716

FB uses &HFF00FF as a "transparent" color in 16+ bit color modes ... does anyone know what this'd translate to in RGB values? &HFF00FF is magenta: FF 00 FF Red=255 (FF), Green=0 (00), Blue=255 (FF) I can never remember whether it's RRGGBB or BBGGRR, but in this case I guess it doesn't matter.
by counting_pine
Jul 15, 2005 12:56
Forum: Beginners
Topic: Let me make this clear...
Replies: 5
Views: 3230

Yes, just watch for the ocasional pothole;)
by counting_pine
Jul 15, 2005 12:24
Forum: General
Topic: Small request
Replies: 15
Views: 3150

I am likewise against non-standard bastardizations of this or any other language, and yes, there is a standard for BASIC. All you have to do is take any text editor and replace all occurences of ENDIF with END IF -- voila! Thanks everyone for all the suggestions on how I can continue to indulge in ...
by counting_pine
Jul 11, 2005 0:02
Forum: General
Topic: Small request
Replies: 15
Views: 3150

Thanks very much for the update, v1ctor!
I'll be looking forward to the new release.
by counting_pine
Jul 10, 2005 21:53
Forum: General
Topic: Small request
Replies: 15
Views: 3150

I did some tests by text-editing a couple of QBASIC programs: BC won't accept "?" as PRINT, it also won't accept "ENDTYPE" (nor does the QB IDE), but it will accept "ENDIF". Maybe we're using different versions? If ENDIF is added, then all the END ### constructions would have to, what would add yet-...

Go to advanced search