I picked up a low pressure sodium lamp and am working on a Halloween demonstration. I’m hoping to make a display that appears one way under normal light, but looks totally different under the monochromatic 589nm sodium vapor light.

So basically, I’m looking to generate a color wheel where I pick a shade of gray and get a list of colors that would look that gray under sodium vapor light.

…I feel like there must be a Python library for thing or something…

8 points

So I’m really not sure how this works anymore but if you figure out which frequencies alias you can use https://academo.org/demos/wavelength-to-colour-relationship/ to do a conversion.

permalink
report
reply
17 points

Hmmmmmmmmm… From a high level perspective you need to know the reflectivity of your combined pigments at that wavelength. If it’s the same, they will look the same.

I don’t know of anything easy you can use, but would suggest trying to find reflectance curves for each pigment you have available and making combinations that subtract to the same value at 589nm, or since 589 should be basically yellow, make up some colors where Y is constant and you change the ratio of C to R and try them out?

permalink
report
reply
3 points
*

That’s true! Using RGB alone will not be enough to calculate this! Two materials that might appear equally yellow under white sunlight may appear different shades of yellow under sodium light. Technology Connections did a great video about the difference: https://piped.video/watch?v=uYbdx4I7STg

edit: he starts talking about sodium light in particular at 11:14

permalink
report
parent
reply
2 points
*

Is there an equation for this? Like y = f(x) where y is your choice of gray and x is your color. Maybe you can empirically find “f” by fitting randomly created “x” with the resulting “y”.

If “f” can be approximated and maybe there’s something special about it so that you can find the inverse. Otherwise, you could always just generate a bunch of “x*” again, feed through “f”, and see whether the output “y*” matches your chosen gray.

permalink
report
reply
-9 points
*
Deleted by creator
permalink
report
reply
11 points

This is “ask science”, not “ask hallucinating charlatans”

permalink
report
parent
reply
-2 points
*
Removed by mod
permalink
report
parent
reply
2 points

Would it count as easy to make the colors in a photo editing tool (picking things of the same value and saturation but different hues) and then converting to the CMYK designation?

permalink
report
reply

Ask Science

!askscience@lemmy.world

Create post

Ask a science question, get a science answer.


Community Rules

Rule 1: Be respectful and inclusive.

Treat others with respect, and maintain a positive atmosphere.


Rule 2: No harassment, hate speech, bigotry, or trolling.

Avoid any form of harassment, hate speech, bigotry, or offensive behavior.


Rule 3: Engage in constructive discussions.

Contribute to meaningful and constructive discussions that enhance scientific understanding.


Rule 4: No AI-generated answers.

Strictly prohibit the use of AI-generated answers. Providing answers generated by AI systems is not allowed and may result in a ban.


Rule 5: Follow guidelines and moderators' instructions.

Adhere to community guidelines and comply with instructions given by moderators.


Rule 6: Use appropriate language and tone.

Communicate using suitable language and maintain a professional and respectful tone.


Rule 7: Report violations.

Report any violations of the community rules to the moderators for appropriate action.


Rule 8: Foster a continuous learning environment.

Encourage a continuous learning environment where members can share knowledge and engage in scientific discussions.


Rule 9: Source required for answers.

Provide credible sources for answers. Failure to include a source may result in the removal of the answer to ensure information reliability.


By adhering to these rules, we create a welcoming and informative environment where science-related questions receive accurate and credible answers. Thank you for your cooperation in making the Ask Science community a valuable resource for scientific knowledge.

We retain the discretion to modify the rules as we deem necessary.


Community stats

  • 432

    Monthly active users

  • 217

    Posts

  • 3K

    Comments