DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Background colour options

Started by samdavo, October 04, 2013, 09:19:44 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

samdavo

Clearly there are heaps of background colours.
I enclose the results of trying to see
a) "pure white" text (255.255.255), and also
b) "pure black" text (000.000.000),

when the background settings (RGB) are 
255.255.255 
250.250.250   
...
005.005.005 
000.000.000 

and also there might be a colour in the drawing eg a jpeg or even shading, which is making the text hard to see.

SUMMARY (as I see it anyway - maybe I'm suffereing from a pigment of the imagination , ...) :-

When the background settings (RGB) are 
255.255.255,  then
"black" text is black,
and also "white" text is black;

250.250.250,  then
black text is black,
but white text becomes white = invisible on the near-white background, but handy on a dark jpeg or shading);

005.005.005, then
black text is black = invisible on the near-black background, but handy on a light jpeg or shading,
and white is white;

000.000.000, then   
black text becomes white,
and white stays white.

(Background is changed using Q\colour\background of course).

PS in the second attachment, the text saying that the background is 250.250.250 has become white and hence invisible.

samdavo

#1
Note, if you refer the enclosed jpeg and dcd.   There is a "1" drawn on the white part of the colour pattern jpeg (and this could as easily be shading).  See if you can make the "1" show up (meaning that it has to change to black right?).

You give in?, lol.
Try changing the background from 000.000.000 to 005.005.005  :)

samdavo

#2
I enclose a zip file with "5 shades of grey" background.
black, off-black, mid-grey, off-white, and white.

They could obviously be made more complex, addressing colours of cursor, of selection, of rubberband, etc.  The only one that addresses SOME of these colours is off-white.d3m (note the background has 250.250.250, just short of 255.255.255):- 

'  off-white = simply changes to off-white background.
'background
sys(321)=250
sys(322)=250
sys(323)=250

'brown selection
sys(315)=255
sys(316)=130
sys(317)=0

'green cursor
sys(331)=0
sys(332)=255
sys(333)=0

'set 3D cursor color now red gold blue
sys(334)=255
sys(335)=0
sys(336)=0
sys(337)=255
sys(338)=130
sys(339)=0
sys(340)=0
sys(341)=255
sys(342)=255

regen


(   But these days my layer determines rubberband and cursor etc - that way I know what layer I am working in just by the rubber band colour.   If they are red, I am drawing and editing in red layer 2 only (for instance).

And indeed I know if I have all layers being edited by a purple rubber band cursor etc.  The macro that chooses all layers is a.d3m :-
'macro a.d3m (amended 20130510) sets all layers to be visible and editable

for j = 0 to 2000
layer(j) = 6
next j
layer(sys(3))=14
sys(26)=0


'point =purple
sys(312)=130
sys(313)=0
sys(314)=255

'cursor =purple
sys(331)=130
sys(332)=0
sys(333)=255

'set rubberband = purple
sys(306)=130
sys(307)=0
sys(308)=255

'set selection rubberband to purple
sys(324)=130
sys(325)=0
sys(326)=255

'selection to purple
sys(315)=130
sys(316)=0
sys(317)=255

Could this be improved? heck yes.
Do I go overboard ?i.e. would it be adequate to have the layer indicated JUST by the rubberband? heck yes.  etc

samdavo

#3
Quote from: samdavo on October 04, 2013, 09:19:44 AM
I enclose the results of trying to see
a) "pure white" text (255.255.255), and also
b) "pure black" text (000.000.000),

when the background settings (RGB) are 
255.255.255 
250.250.250   
...
005.005.005 
000.000.000 
...
Short summary:-
If you use black text or lines ( 000.000.000), these only change to white (on screen) if you have 255.255.255 background.

And if you use white text or lines (255.255.255), these only changes to black (on screen) if you have 000.000.000 background.


samdavo

#4
Ok - herewith a challenge (that I still don't "get"),
1. with grey background (190.190.190), you get white as white on screen, as ditto for black (I get that);
2. the only way to get the YinYang sign to show as black-and white on screen is to avoid 000.000.000 and 255.255.255  (I get that as well - see screendumps on previous posts); 
3. the best way to see both black and white lines, yinyang, etc on screen is probably (presumably?) to use grey background.

4.  However - and here's where I come unstuck - I can't get it to print like that screen

a) the screen view is great! - it has plenty of colours incl the Black and white yinyang.
b) but even print preview is mainly black
c) and certainly the pdf printout is totally "useless".

Comments :-
In preview or printout, I always get a solid black YINYANG sign  - i.e. no matter whether the "white" (used for the hatch lines in the YINYANG sign) is 255.255.255 or 250.250.250, it previews and also prints as black.

There is also a problem that I can't move the jpeg to back (in the printout) - it always sits in front of the yinyang drawings.

My conclusion?  If I want to print with all those colours, (or even the black and white YINYANG),  I would simply do a "screendump".

Dr PR

Sam,

One of the classic programming problems is to get the cursor to appear on the screen as it is moved across patterns of many colors or shades of gray. Eventually the cursor will cross over an area of the same color and be invisible - but no one (except Adobe) wants that to happen. So it is a Programming 101 exercise to create a cursor that will always be visible no matter what the background. The simple way is to exclusive OR (XOR) the cursor color with the background color, pixel by pixel, so you are guaranteed to get unique cursor colors that contrast with the background.

You have the same problem with a CAD drawing if the drawing object color can be the same as the background color. If the user is allowed to change the background color it is inevitable that someday the drawing and the background will be the same color, like black lines on a black background. Likewise, the user may select the background color for the object color.

DesignCAD uses a simple method to ensure that drawing objects are (almost) always visible. Colors have numeric values for red, green and blue. If the object color value is less than 5 from the background color value, the drawing color is inverted. So a very light gray on a white background is displayed very dark gray. Dark blue objects on a dark blue background will be displayed light yellow. Yellow is the compliment (inverse) of blue.

Of course, if the object differs by only 6 from the background it will be almost invisible - maybe totally invisible on some monitors or with some brightness settings.

Phil
DesignCAD user since 1987

samdavo

#6
ahh - thanks for that explanation  Phil - all makes sense (when you know what to look for).
(yellow = 255.255.000,  bark blue = 000.000.255).
cheers