Chips&Chips wrote: ↑Fri Feb 09, 2024 2:28 pm
This tells me that the two line colors are being applied to the screen in SEQUENCE. First the Meta Grid lines are written to the screen memory and then the Grid lines are written on top of that. Where the two coincide, the Grid line color wins and the Meta Grid line color is completely eliminated.
Your statement does not explain the oscillating color nature.
Surely everything is added to the screen in sequence, that might change with the use of quantum processors.
Even the results from modern parallel thread computing is at some point initiated/handled sequentially.
Changing the order of things, double (Meta) Grid lines, considering these things won't happen anytime soon.
Yes, Meta Grid lines are drawn first, followed by Grid points or lines.
https://github.com/qcad/qcad/blob/maste ... #L269-L272
With a round trip via
https://github.com/qcad/qcad/blob/maste ... hoGrid.cpp
See Line 467 & 490 but those will bring you somewhat further down.
And there you might remark the it are simple
RLine's handled by
RGraphicsViewImage.paintGridLine
The sequence alone does not explain why horizontal 4'-8" is dark gray while 5'-0" has almost the color of a Grid line.
Similar for vertical 4'-0" vs 7'-6" and the change is gradual, repeating.
You mention black Meta Grid lines and that explains the dark grey nature compared with the black tick marks of the rulers.
Black is blended with the grey what gives dark gray, all depends on the Alpha channel of the gray color of the Grid line.
Set that to 255 and nothing of the black will shine through.
You are practically inverting the Drawing panel color scheme.
I stick to all auto Grid step values, auto scaling.
With my background color set to a very light gray #e8e8e8 (232,232,232) and this has no Alpha channel. (Sure, 255, fully saturated)
Knowing that for each Meta Grid Line there is also a Grid Line I would set the Meta color black with the Alpha higher than 25%, rather 75% or 192.
I kept my Grid color as default what was #c0c0c0 (192,192,192) with the same Alpha value 75%, only opted for lines.
The result looks perfectly OK, no variation in Grid + Meta Grid colors and that in any zoom state.
- Ignore the forum preview, view the image at 100% (1539 by 859px)
- Gray+DarkGray_GridOnGrayBack.png (68.52 KiB) Viewed 610 times
I know, the forum preview looks quite poor ...
The why of this test:
At some point one starts to wonder if all that Math forth and back would place Grid lines exactly over Meta Grid lines.
Pixel based >> Real world size >> Ceil, log, round, conversion factors >> Eventually displayed pixel based.
This standard gray+black on light gray test excludes that it is a mathematical issue introduced by QCAD & Qt.
With no trial combination I can replicate the oscillating color saturation issue.
How does my (not scaled) pattern looks on your screen?
Regards,
CVH,