![]() |
Forum Index : Microcontroller and PC projects : Micromite colour chooser
Author | Message | ||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6274 |
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: AustraliaPosts: 1329 |
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: AustraliaPosts: 6274 |
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: 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: AustraliaPosts: 6274 |
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: 565 format: 2015-08-16_063330_colour_defines.zip Jim VK7JH MMedit |
||||
paceman Guru ![]() Joined: 07/10/2011 Location: AustraliaPosts: 1329 |
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 ZealandPosts: 9603 |
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: AustraliaPosts: 1992 |
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: AustraliaPosts: 6274 |
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: AustraliaPosts: 1329 |
Even better Jim - there will be plenty of use for this. Greg |
||||
paceman Guru ![]() Joined: 07/10/2011 Location: AustraliaPosts: 1329 |
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: AustraliaPosts: 6274 |
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: AustraliaPosts: 6274 |
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: GermanyPosts: 947 |
Hi Jim, many thanks for your very useful tool! ![]() Frank |
||||
Grogster![]() Admin Group ![]() Joined: 31/12/2012 Location: New ZealandPosts: 9603 |
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: AustraliaPosts: 6274 |
@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 ZealandPosts: 9603 |
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: AustraliaPosts: 1329 |
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: GermanyPosts: 947 |
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 |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |