08-27-2023, 05:24 PM
LOL STARFISHING
Dude, you're amazing. Thank you for making this. I'll study and see how I can ruin it and put it into my library LOL.
I might have questions!
You said something about @CharlieJV having a BAM version? Can you share that information please
Also, if you look at the final version of our combined work I added a few functionalities that might be useful to add to yours.
- Save glyphs to disk as BMP images (uses Galleon SaveImage).
In the thread I started, I posted a final version added with your help.
Thanks again. I won't derail your own thread.
A couple of thoughts though!
We have single color fonts right now. We could simply add color support using an XPixMap (XPM) format approach!
https://en.wikipedia.org/wiki/X_PixMap
I was thinking instead of X, we could simply use hex numbers to identify up to 16 colors, and we could have each font have it's own colors stored in it, in this way while we're using it as a font, it's actually a tile system that is easily used.
^ From the wiki link...
Also check this it shows a good example of what I'm saying.
https://www.reddit.com/r/programming/com...est_image/
It might be a really fun project for you guys to add XPM support to QB64PE natively
But I digress, and thank you again for your sweet work. You have such a great personality and I am really impressed by how terse and to the point your code is compared to mine.
Like this part in your `FPrint` routine:
```
If Asc(PA$(a), i) <> Asc(".") Then
Line (x% + ((l - 1) * (sq + spacing%) + c) * scale%, y% + r * scale%)-Step(scale%, scale%), colr~&, BF
End If
```
My brain is
Also should I be using `_UNSIGNED LONG` for all my _RGB32 colors?
Dude, you're amazing. Thank you for making this. I'll study and see how I can ruin it and put it into my library LOL.
I might have questions!
You said something about @CharlieJV having a BAM version? Can you share that information please
Also, if you look at the final version of our combined work I added a few functionalities that might be useful to add to yours.
- Save glyphs to disk as BMP images (uses Galleon SaveImage).
In the thread I started, I posted a final version added with your help.
Thanks again. I won't derail your own thread.
A couple of thoughts though!
We have single color fonts right now. We could simply add color support using an XPixMap (XPM) format approach!
https://en.wikipedia.org/wiki/X_PixMap
I was thinking instead of X, we could simply use hex numbers to identify up to 16 colors, and we could have each font have it's own colors stored in it, in this way while we're using it as a font, it's actually a tile system that is easily used.
Code: (Select All)
#define XFACE_format 1
#define XFACE_width 48
#define XFACE_height 48
#define XFACE_ncolors 2
#define XFACE_chars_per_pixel 1
static char *XFACE_colors[] = {
"a", "#ffffff",
"b", "#000000"
};
static char *XFACE_pixels[] = {
"abaabaababaaabaabababaabaabaababaabaaababaabaaab",
// and so on for 48 rows with 48 pixels
Also check this it shows a good example of what I'm saying.
https://www.reddit.com/r/programming/com...est_image/
It might be a really fun project for you guys to add XPM support to QB64PE natively
But I digress, and thank you again for your sweet work. You have such a great personality and I am really impressed by how terse and to the point your code is compared to mine.
Like this part in your `FPrint` routine:
```
If Asc(PA$(a), i) <> Asc(".") Then
Line (x% + ((l - 1) * (sq + spacing%) + c) * scale%, y% + r * scale%)-Step(scale%, scale%), colr~&, BF
End If
```
My brain is
Also should I be using `_UNSIGNED LONG` for all my _RGB32 colors?