Search found 79 matches
- Jan 22, 2010 1:52
- Forum: General
- Topic: Anyone have a fast point() routine that works for buffers?
- Replies: 1
- Views: 839
Anyone have a fast point() routine that works for buffers?
I'm working on my ASCII art converter, and I've realized that (probably) one of the major bottlenecks in the code is my use of point(), which I've heard is inefficient. I use it in almost every loop, so it seems worth it to optimize, but I have to admit that I'm a bit intimidated by the idea of delv...
- Jan 18, 2010 23:41
- Forum: Game Dev
- Topic: 3D voxel style engine
- Replies: 2
- Views: 3490
- Jan 18, 2010 18:19
- Forum: Projects
- Topic: .mo reader. Read gettext mo files.
- Replies: 2
- Views: 2404
- Jan 16, 2010 5:00
- Forum: Community Discussion
- Topic: History of FreeBASIC
- Replies: 17
- Views: 6598
You might want to explain briefly (in a sentence or two) what Qbasic and QuickBasic are, since I'm assuming that this is meant for folks not familiar with FB and QB to read as well. Overall, nice and concise. I was a QB guy before the FB project started, but I didn't know most of these things. Only ...
- Jan 15, 2010 17:03
- Forum: General
- Topic: Reading a binary random search file created in QB4.5
- Replies: 7
- Views: 2264
- Jan 15, 2010 16:51
- Forum: Sources, Examples, Tips and Tricks
- Topic: Multiplication simple
- Replies: 2
- Views: 1200
You really need to learn to write FreeBASIC, this is Qbasic code :). In (modern) Freebasic, we don't have type suffixes like $, %, !, etc... Instead, the type of each variable has to be declared using DIM or some other way. Ud. realmente tiene que aprender a escribir FreeBASIC, este es Qbasic :). En...
- Jan 15, 2010 16:17
- Forum: Sources, Examples, Tips and Tricks
- Topic: Color ASCII art converter
- Replies: 0
- Views: 1697
Color ASCII art converter
I'm writing a program to convert 24 bit BMP files to color ASCII art. So far, all it does is display the image, which has to be 640x480 or less, but the quality is pretty good. '************************ '* iCon Image Converter * '* > by Pharoah/Qlink * '************************ 'Version 0.75 unoptim...
- Jan 14, 2010 22:05
- Forum: General
- Topic: Calculations for converting true color to palette color
- Replies: 6
- Views: 1721
Well, the program I have already works for the images that were taken straight from 16 color screens, but I've been trying to get it to handle other images and produce some likeness of their color content. My problem now is that I've found that many images will have, for example, large areas of gree...
- Jan 13, 2010 17:03
- Forum: General
- Topic: Calculations for converting true color to palette color
- Replies: 6
- Views: 1721
Ah, thanks for that. The randomness isn't a big part of the program, but it's nice to get it working right all the same. What I still can't figure out is why so many colors want to match to gray or white instead of whatever they most resemble. I think perhaps if I find some way to add contrast adjus...
- Jan 13, 2010 0:53
- Forum: General
- Topic: Calculations for converting true color to palette color
- Replies: 6
- Views: 1721
I ended up doing it a different way. Basically what I have now compares the quantization by comparing each pixel's RGB values to the RGB values of the 16 colors in the palette, and finding the one with the least error. I noticed that most images need adjustment still, and, after trying a bunch of th...
- Jan 12, 2010 20:36
- Forum: General
- Topic: Calculations for converting true color to palette color
- Replies: 6
- Views: 1721
Calculations for converting true color to palette color
I'm in the process of writing a very simple program that loads a 24bpp BMP file and converts it, pixel by pixel, into a 4bpp output, without dithering. Many of the images I'm trying to convert for my particular purpose are actually screenshots of 16 color Qbasic programs, but they're saved as 24 bit...
- Jul 27, 2009 2:35
- Forum: Community Discussion
- Topic: Is QB Express already dead?
- Replies: 68
- Views: 18957
Well, I have to admit that I'm one of the lurkers here for the most part. I started on QB, and I still like it. I moved to FB and sometimes write that, but I know a few other languages now. For example, I really like Python. If I had to write something to work with strings or manipulate data, I'd wr...
- Jul 25, 2009 23:03
- Forum: Community Discussion
- Topic: Array of arrays
- Replies: 8
- Views: 2521
>Stylin, I did search but couldn't find what I was looking for. Thanks for your code, it was helpful :). The main thing I can't figure out how to tackle is allowing a list to handle multiple different types, including numeric types, strings, and other lists. I suppose what I could do is to store it ...
- Jul 25, 2009 4:07
- Forum: Community Discussion
- Topic: Array of arrays
- Replies: 8
- Views: 2521
The way I've currently been tackling things like this is to keep an array of pointers to arrays of the value (or, in the case of strings, to keep an array of zstring ptr ptrs). I have thought about writing a class to implement such a data type (I'll probably make it work like a python list or c# Arr...
- Jul 24, 2009 20:19
- Forum: Community Discussion
- Topic: Is QB Express already dead?
- Replies: 68
- Views: 18957