Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
String color in IDE
#1
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.
Reply
#2
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
Reply
#3
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.

Is there a way to get a list of the color names?
b = b + ...
Reply
#4
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...
Reply
#5
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.

Is there a way to get a list of the color names?

Use my handy dandy ColorFetch Tool!  https://qb64phoenix.com/forum/showthread.php?tid=1184
Reply
#6
(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.

Is there a way to get a list of the color names?

Use my handy dandy ColorFetch Tool!  https://qb64phoenix.com/forum/showthread.php?tid=1184

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)
b = b + ...
Reply
#7
(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 Big Grin

- I always give credit where credit is due, I also charge a ****load of interest for it!
Reply
#8
and again:

GUI Color picker run this exe along with code you are developing for colors:
   
Sky blue at full alpha

   
Red at 128 or half transparent


Attached Files
.zip   GUI Color Clipper.zip (Size: 570.47 KB / Downloads: 19)
b = b + ...
Reply
#9
I just downloaded it. I'll try it out later. 

For the record, I'm not against characters of color. I just always believe they should be judged on their character. Rolleyes

Pete

- The other half of my ASCII is smart, too.
Reply
#10
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!
   
b = b + ...
Reply




Users browsing this thread: 1 Guest(s)