I love the control I have with color setting in the IDE but is there an option or a command this will help me with seeing the color of a string in the IDE?
An example would be:
Screen _NewImage(800, 400, 32)
$Color:32
Color Blue
Print "The sky is blue"
It prints the phrase in a lovely blue to the Screen, but often you can't tell if the blue being printed to the screen is the one you actually want until you run the code. Is there a way or command that I can use to actually have "The sky is blue" appear in the blue in the IDE code itself? It would save me from running the code just to see if it's the color is what I want.
03-12-2024, 08:49 PM (This post was last modified: 03-12-2024, 08:51 PM by Pete.)
In the IDE top menu, click Tools and then click RGB Color mixer.
Next best thing is to download an html editor like Nvu, or a paint app, like paint.net. Use their color RGB controls and when you spot the color you like, just put those red, green, and blue values into your code.
03-12-2024, 08:52 PM (This post was last modified: 03-12-2024, 08:54 PM by bplus.)
The only thing I can think of is a handy little app that lists the colors by name and shows the color in a box next to it. Load and run the app and see the color. Or select the color name and see the color in a display next to list.
03-12-2024, 09:24 PM (This post was last modified: 03-12-2024, 09:28 PM by Pete.)
I was thinking about the values The names, hmm, I'm not sure if there is documentation about each color name and its attributes. I know Steve had added several color names. Farmer Brown... Oh wait, that's his neighbor.
From the wiki...
Code: (Select All)
OUT &H3C7, 15 'set color port attribute 15 for a read
red% = INP(&H3C9)
green% = INP(&H3C9)
blue% = INP(&H3C9)
PRINT red%, green%, blue%
So there are a few ways listed to get started on an app for this, if interested.
Pete
- In SCREEN 0 the colors only matter if their black or white...
03-12-2024, 09:46 PM (This post was last modified: 03-12-2024, 09:50 PM by SMcNeill.)
For a way to get values and see them at the same time:
1) Goto the IDE main menu
2) Click TOOLS
3) Click RGB Color Mixer
4) Set the sliders to adjust to the color which you'd like. You'll be able to see what it'll look like in the mixer, and can just slide those sliders to get the best hue/tone for your needs.
5) Click <Insert> to insert those values into your code.
(03-12-2024, 08:52 PM)bplus Wrote: The only thing I can think of is a handy little app that lists the colors by name and shows the color in a box next to it. Load and run the app and see the color. Or select the color name and see the color in a display next to list.
(03-12-2024, 09:46 PM)SMcNeill Wrote: For a way to get values and see them at the same time:
1) Goto the IDE main menu
2) Click TOOLS
3) Click RGB Color Mixer
4) Set the sliders to adjust to the color which you'd like. You'll be able to see what it'll look like in the mixer, and can just slide those sliders to get the best hue/tone for your needs.
5) Click <Insert> to insert those values into your code.
(03-12-2024, 08:52 PM)bplus Wrote: The only thing I can think of is a handy little app that lists the colors by name and shows the color in a box next to it. Load and run the app and see the color. Or select the color name and see the color in a display next to list.
Yeah thats what I had in mind, thought there might be a list somewhere.
If you like colors by word, I would keep that app close by.
I personally like color mixing with &H.... or _RGB32(redlevel, greenlevel, bluelevel, alphalevel)
(03-12-2024, 08:49 PM)Pete Wrote: In the IDE top menu, click Tools and then click RGB Color mixer.
Next best thing is to download an html editor like Nvu, or a paint app, like paint.net. Use their color RGB controls and when you spot the color you like, just put those red, green, and blue values into your code.
Pete
followed later by...
Quote:SMcNeill Wrote:
For a way to get values and see them at the same time:
1) Goto the IDE main menu
2) Click TOOLS
3) Click RGB Color Mixer
4) Set the sliders to adjust to the color which you'd like. You'll be able to see what it'll look like in the mixer, and can just slide those sliders to get the best hue/tone for your needs.
5) Click <Insert> to insert those values into your code.
So apparently there is an ECHO in here again, and it's a real BATCH!
Pete
- I always give credit where credit is due, I also charge a ****load of interest for it!
03-12-2024, 11:51 PM (This post was last modified: 03-12-2024, 11:56 PM by bplus.)
WTH is the matter with QB64pe??? I just tested the zip file code on my desktop and it ran fine but after download and extract in my Downloads Folder Windows is bitching about a virus found:
It runs fine in QB64pe v 3.10from same downloaded and extracted zip file!