Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 08:20 23 Jul 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Micromite colour chooser

Author Message
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6274
Posted: 06:28pm 15 Aug 2015
Copy link to clipboard 
Print this post

The Micromite colour chooser makes it easy to define colours for the Micromite+ and the earlier 565 colour format.



Simply set the sliders then copy and paste into your program.

The program is a single EXE and can reside anywhere on your PC.
2015-08-16_042714_TFTcolour.zip

The horrible, bland colour schemes of Windows 10 became apparent when I start creating GUI's for it.
I had to add extra boxes around sections to make it a bit more readable.

I will add it to the next update of MMEdit, but still as a standalone application.

Jim


VK7JH
MMedit
 
paceman
Guru

Joined: 07/10/2011
Location: Australia
Posts: 1329
Posted: 07:08pm 15 Aug 2015
Copy link to clipboard 
Print this post

That's pretty handy Jim, many thanks.
Do you know of a colour palette anywhere that gives the 565 numbers. It's not easy knowing where to start with most colours, primaries excluded of course.

Greg
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6274
Posted: 07:39pm 15 Aug 2015
Copy link to clipboard 
Print this post

The numbers on the program adjacent to the colour name are the 255,255,255 followed by the 565 values.

I do have a list of ~1100 colours:
  Quote  #AcidGreen = $1ABFB0; RGB (176, 191, 26)
#Aero = $E8B97C; RGB (124, 185, 232)
#AeroBlue = $E5FFC9; RGB (201, 255, 229)
#AfricanViolet = $BE84B2; RGB (178, 132, 190)
#AirForceBlue_RAF = $A88A5D; RGB (93, 138, 168)
#AirForceBlue_USAF = $8F3000; RGB (0, 48, 143)
#AirSuperiorityBlue = $C1A072; RGB (114, 160, 193)
#AlabamaCrimson = $2A00AF; RGB (175, 0, 42)
#AliceBlue = $FFF8F0; RGB (240, 248, 255)
#AlizarinCrimson = $3626E3; RGB (227, 38, 54)
#AlloyOrange = $1062C4; RGB (196, 98, 16)
#Almond = $CDDEEF; RGB (239, 222, 205)


I could convert the list to include the 565 colours.
It's only red and blue divided by 8, green divided by 4.
In 565 mode, there would be a lot of duplicates.

While I'm at it, I can change the HEX format to MMBasic style.

Jim

VK7JH
MMedit
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6274
Posted: 08:33pm 15 Aug 2015
Copy link to clipboard 
Print this post

Here are two files.
One for 24bit colours and one for 565 format.
There are 1181 colours defined so don't try adding them all to your program.

24 bit:
  Quote  AcidGreen = &H1ABFB0 ' RGB (176, 191, 26)
Aero = &HE8B97C ' RGB (124, 185, 232)
AeroBlue = &HE5FFC9 ' RGB (201, 255, 229)
AfricanViolet = &HBE84B2 ' RGB (178, 132, 190)
AirForceBlue_RAF = &HA88A5D ' RGB (93, 138, 168)
AirForceBlue_USAF = &H8F3000 ' RGB (0, 48, 143)
AirSuperiorityBlue = &HC1A072 ' RGB (114, 160, 193)
AlabamaCrimson = &H2A00AF ' RGB (175, 0, 42)
AliceBlue = &HFFF8F0 ' RGB (240, 248, 255)
AlizarinCrimson = &H3626E3 ' RGB (227, 38, 54)
AlloyOrange = &H1062C4 ' RGB (196, 98, 16)
Almond = &HCDDEEF ' RGB (239, 222, 205)


565 format:
  Quote  AcidGreen = &HB5E3 ' 22, 47, 3
Aero = &H7DDD ' 15, 46, 29
AeroBlue = &HCFFC ' 25, 63, 28
AfricanViolet = &HB437 ' 22, 33, 23
AirForceBlue_RAF = &H5C55 ' 11, 34, 21
AirForceBlue_USAF = &H0191 ' 0, 12, 17
AirSuperiorityBlue = &H7518 ' 14, 40, 24
AlabamaCrimson = &HA805 ' 21, 0, 5
AliceBlue = &HF7DF ' 30, 62, 31
AlizarinCrimson = &HE126 ' 28, 9, 6
AlloyOrange = &HC302 ' 24, 24, 2
Almond = &HEEF9 ' 29, 55, 25
Amaranth = &HE14A ' 28, 10, 10


2015-08-16_063330_colour_defines.zip

Jim


VK7JH
MMedit
 
paceman
Guru

Joined: 07/10/2011
Location: Australia
Posts: 1329
Posted: 09:40pm 15 Aug 2015
Copy link to clipboard 
Print this post

Great, thanks very much. The names are sort-of explanatory themselves so that's a good start.
Makes you wonder where they get these names? "AirSuperiorityBlue"...sheeesh! - a rather insipid looking blue anyway don't you think.

Greg
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9603
Posted: 02:47pm 16 Aug 2015
Copy link to clipboard 
Print this post

Awesome.

Just what I wanted for some custom colours, but could not be bothered to work out the RGB codes - now I don't have to.
Smoke makes things work. When the smoke gets out, it stops!
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1992
Posted: 04:52pm 16 Aug 2015
Copy link to clipboard 
Print this post

If you have a look at the colour palette in Microsoft Paint, when you select a colour it gives you the RGB values.
Paul.
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6274
Posted: 09:08pm 16 Aug 2015
Copy link to clipboard 
Print this post

A cold day today so I played inside:



Set the colour by adjusting the three sliders.

You can also enter colour values in the appropriate field. The format required is reasonably loose.

In the 24bit field you can enter:
&H915C83, 0x915C83, $915C83, #915C83, or 915C83h
(HEX assumed because they are all versions of HEX number styles)
915C83 (HEX assumed because there is a character from ‘a-f’ in the number)
9526403 (decimal assumed)

And you will end up with the colour in the image.

In the RGB field, as long as there are 3 numbers with a space or comma between them, the result should be OK.

Finally, you can pick a colour from the pull down list.

Once selected copy and paste the value into your MMBasic program.
In most cases, the RGB field is the preferred one to use.

2015-08-17_070630_TFTcolour.zip

Jim
VK7JH
MMedit
 
paceman
Guru

Joined: 07/10/2011
Location: Australia
Posts: 1329
Posted: 12:17am 17 Aug 2015
Copy link to clipboard 
Print this post

Even better Jim - there will be plenty of use for this.

Greg
 
paceman
Guru

Joined: 07/10/2011
Location: Australia
Posts: 1329
Posted: 12:21am 17 Aug 2015
Copy link to clipboard 
Print this post

  palcal said   If you have a look at the colour palette in Microsoft Paint, when you select a colour it gives you the RGB values.
Paul.

I'd never even noticed that Paul but it'll be handy to use along with Jim's program - maybe as a first guess as to what you might want.

Greg
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6274
Posted: 01:05am 17 Aug 2015
Copy link to clipboard 
Print this post

A lot of programs give you the colour values but never in the right format for pasting into a program.

My next addition will be a colour picker to get the colour of anywhere on the desktop, so you can use other peoples colour schemes.

In a day or two...

Jim

VK7JH
MMedit
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6274
Posted: 03:59pm 18 Aug 2015
Copy link to clipboard 
Print this post

This will be the last change to the program
It looks the same as the previous version until you press F4

Then the colour under the mouse pointer appears in the colour window and the RGB box is updated as you move the mouse around the desktop.

Press F4 again and the other boxes are updated and the mouse stops updating, allowing you to copy and paste again.

For it to work, the TFTcolour window has to be the active window.

2015-08-19_015820_TFTcolour.zip

Jim

VK7JH
MMedit
 
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 947
Posted: 08:11pm 18 Aug 2015
Copy link to clipboard 
Print this post

Hi Jim,

many thanks for your very useful tool!

Frank
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9603
Posted: 02:13pm 19 Aug 2015
Copy link to clipboard 
Print this post

Beautiful addition to the tool, Jim, and that will be even more useful - point at the colour you want, and done!

I am having issues with that though - chooser always picks the colour in the icon to the LEFT of where the pointer is - see attached images:







Smoke makes things work. When the smoke gets out, it stops!
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6274
Posted: 02:25pm 19 Aug 2015
Copy link to clipboard 
Print this post

@Grogster
I can't see your mouse pointer in the images so it's had to know.

I think you have been clicking.
You don't have to click on anything to see the colour, just move the mouse around.
Use F4 to 'capture to chosen colour.

Most graphics are not pure colours so you do get some odd colours appear. I was going to incorporate a magnifier but I had a few problems getting it to work well with my bits of code so I kept it simple.

Jim

VK7JH
MMedit
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9603
Posted: 03:11pm 19 Aug 2015
Copy link to clipboard 
Print this post

Hey there - no, not clicking, just moving. Screen-capture shows the icon as clicked.

See this demo video to see the issue I am talking about:

Demo video
Smoke makes things work. When the smoke gets out, it stops!
 
paceman
Guru

Joined: 07/10/2011
Location: Australia
Posts: 1329
Posted: 04:42pm 19 Aug 2015
Copy link to clipboard 
Print this post

Hi Jim,
I've just arrived in sunny Qld to escape the cr...y Melbourne weather for a week so cant try this out. Thanks again though, this will be even handier.

Greg
 
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 947
Posted: 08:18pm 19 Aug 2015
Copy link to clipboard 
Print this post

Hi,

it works like a charme on my Win7 PC.

Press F4, move your cursor over the desktop without clicking, press F4 again and all is done - no clicking anywhere...

Thanks again!

Frank
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025