This may be 'slightly' off topic, (
but people that know me... well... you know...)...
Back in the 60's early 70's, when I first started playing with 'electronics', we often had BLACK painted Glass-Enveloped Transistors,
which from memory were in the 'OCxx' series... Years later, I had a 'Debate' online with an old guy that had actually BUILT them !!
Now I told him how we would scratch the black paint off, to make them Light-Sensitive Transistors!!! Was true, but he didn't believe it.
Also around that time (and earlier!), certain old valves/tubes had their glass body spray-painted black, and sometimes gold... Although
for different reasons! although SOME clear-glass tubes actually had an external light-source close to them, in order to 'excite' the coated
plates, that's beyond the discussion here!!...
Anyway, their main reason for 'coating' in the above paragraph, was to HIDE what the manufacturers had done technology wise, inside.
But NOT to stop giving away 'good' secrets, but out of embarrassment when technology had 'improved', and a cheap manufacturer was
not using the latest science in their Plates/Coatings & 'Getter' technology, that was obvious without the Paint!