Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 07:31 27 Nov 2024 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 Colours

Author Message
OA47

Guru

Joined: 11/04/2012
Location: Australia
Posts: 926
Posted: 08:15pm 19 Nov 2023
Copy link to clipboard 
Print this post

Has there been a list published that shows the 24 bit R,G and B levels for the inbuilt 8 colours of blue, green, cyan, red, magenta, yellow, brown and gray?

0A47
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6798
Posted: 08:54pm 19 Nov 2023
Copy link to clipboard 
Print this post

MMBasic accepts 0-255 for R, G & B values then automatically scales them to suit the platform. so Red, for example, is always RGB(255,0,0) even on a Picomite where there is only 1 bit or Red. Consequently the basic colours are easy

Red is RGB(255,0,0)
Green is RGB(0,255,0)
Blue is RGB(0,0,255)
Yellow is RGB(255,255,0)
Cyan is RGB(0,255,255)
Magenta is RGG(255,0,255)
Black is RGB(0,0,0)
White is RGB(255,255,255)

These values are true for all platforms. They can be shortened e.g. RGB(red) or RGB(white)

Brown and Gray rely on there being more control.
The CMM2 uses these values:

Brown is RGB(165,42,42)
Grey is RGB(64,64,64)

You may have to play with these values.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6099
Posted: 08:58pm 19 Nov 2023
Copy link to clipboard 
Print this post


   #define BLACK               RGB(0,    0,      0)
   #define BLUE                RGB(0,    0,      255)
   #define GREEN               RGB(0,    255,    0)
   #define CYAN                RGB(0,    255,    255)
   #define RED                 RGB(255,  0,      0)
   #define MAGENTA             RGB(255,  0,      255)
   #define YELLOW              RGB(255,  255,    0)
   #define BROWN               RGB(255,  128,    0)
   #define GRAY                RGB(128,  128,    128)
   #define LITEGRAY            RGB(210,  210,    210)
   #define WHITE               RGB(255,  255,    255)


Jim
VK7JH
MMedit   MMBasic Help
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6798
Posted: 09:08pm 19 Nov 2023
Copy link to clipboard 
Print this post

I've found that browns and oranges seem to depend on the monitor and the ambient lighting. They aren't "pure" colours and brown doesn't really exist!
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
OA47

Guru

Joined: 11/04/2012
Location: Australia
Posts: 926
Posted: 09:12pm 19 Nov 2023
Copy link to clipboard 
Print this post

Thanks for the info. I was using the gray color (grey colour) and was not happy with the contrast so now I can play around with the values.

0A47
 
Print this page


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

© JAQ Software 2024