![]() |
|
Another hair brain idea - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: Chatting and Socializing (https://qb64phoenix.com/forum/forumdisplay.php?fid=11) +--- Forum: General Discussion (https://qb64phoenix.com/forum/forumdisplay.php?fid=2) +---- Forum: Site Suggestions (https://qb64phoenix.com/forum/forumdisplay.php?fid=12) +---- Thread: Another hair brain idea (/showthread.php?tid=4190) Pages:
1
2
|
Another hair brain idea - Dimster - 12-04-2025 What if the colors could be converted to strings... I know what your thinking .. brilliant idea... So it would go like this $Color:32 Presently it goes like this: Color Brown _Uprintstring (C,R)," This is the color brown" C=C+75 Color Lime _Uprintstring (C,R)," and now the color is Lime" But, whatif Color Brown Lime$=str$(Color Lime) _Uprintstring (C,R)," This is the color Brown"+Lime$+" and now the color is Lime" Easy peasy right. RE: Another hair brain idea - ahenry3068 - 12-04-2025 (12-04-2025, 06:51 PM)Dimster Wrote: What if the colors could be converted to strings... I know what your thinking .. brilliant idea...This isn't exactly the same. But you MIGHT find this useful. RE: Another hair brain idea - Dimster - 12-04-2025 Ya ahenry, that's pretty close. I assume that would be screen 0? Pretty neat approach to different color text in the same sentence. RE: Another hair brain idea - ahenry3068 - 12-04-2025 (12-04-2025, 07:25 PM)Dimster Wrote: Ya ahenry, that's pretty close. I assume that would be screen 0? Pretty neat approach to different color text in the same sentence. Works on 256 color graphics screens too. (As long as you haven't messed with the Palette) Doesn't work right on 32 bit screens. RE: Another hair brain idea - PhilOfPerth - 12-05-2025 (12-04-2025, 07:48 PM)ahenry3068 Wrote:(12-04-2025, 07:25 PM)Dimster Wrote: Ya ahenry, that's pretty close. I assume that would be screen 0? Pretty neat approach to different color text in the same sentence. I'm no expert, but what I do is create a small sub for each colour I want to use, like Sub Yellow Color _RGB(255, 255, 0) End Sub then I just plug the word "Yellow" into the line where I want the colour change, like Print "HI";:yellow: Print ", Dimster RE: Another hair brain idea - ahenry3068 - 12-05-2025 (12-05-2025, 02:10 AM)PhilOfPerth Wrote:There are always many ways to Flay a Feline(12-04-2025, 07:48 PM)ahenry3068 Wrote:(12-04-2025, 07:25 PM)Dimster Wrote: Ya ahenry, that's pretty close. I assume that would be screen 0? Pretty neat approach to different color text in the same sentence. RE: Another hair brain idea - Magdha - 12-05-2025 Just a small observation: It should be "harebrained" rather than "hair brain" = "with the brain of a hare" as dopey as a large rabbit I only found this out a few years ago, but once you know it make sense. RE: Another hair brain idea - SMcNeill - 12-05-2025 (12-05-2025, 10:05 AM)Magdha Wrote: Just a small observation: It should be "harebrained" rather than "hair brain" @Magdha Observing on your observation: "Hairbrained" is also acceptable. It's even in the dictionary, though with a reference which basically says, "See harebrain". Hairbrained has been a historical spelling going back hundreds of years (Historical *misspelling* going back hundreds of years, perhaps??), and it's been around so long and used so much that it's also considered to be a valid word. https://www.merriam-webster.com/dictionary/hairbrained I would guess though, if you have hair growing in your brain, you're probably not that much smarter than a hare to begin with. Just one of those "once you know, you know" points to add to your point.
RE: Another hair brain idea - Magdha - 12-05-2025
RE: Another hair brain idea - bplus - 12-05-2025 I thought hairbrained is when your hair grows the wrong way. |