<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
Hi Elaine,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
Thanks for this clarity! I was having a moment there trying to describe what I was after. It was actually much simplier, I just wanted to make a composite colormap with green and magenta, which is working now
<span id="🙂">🙂</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<span><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<br>
</div>
<div class="elementToProof">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<p style="font-family:"Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;font-size:14px;text-align:start;background-color:rgb(255, 255, 255)">
<span style="font-size:18px;font-family:Arial, Helvetica, sans-serif;margin:0px;color:rgb(0, 37, 84);box-sizing:border-box"><span style="font-weight:bolder;margin:0px;box-sizing:border-box">Brandon Scott, PhD </span></span></p>
<p style="font-family:"Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;font-size:14px;text-align:start;background-color:rgb(255, 255, 255)">
<span style="margin:0px;color:rgb(0, 37, 84)">CZI Imaging Scientist, Assistant Professor</span><br>
</p>
<p style="font-family:"Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;text-align:start;box-sizing:border-box;margin-top:0.5em;margin-bottom:0.5em;color:rgb(117, 120, 123);font-size:12px;background-color:rgb(255, 255, 255);line-height:1">
<strong style="box-sizing:border-box;font-weight:bolder;font-family:Arial, Helvetica, sans-serif">Nanoscience & Biomedical Engineering</strong></p>
<p style="font-family:"Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;text-align:start;box-sizing:border-box;margin-top:0.5em;margin-bottom:0.5em;color:rgb(117, 120, 123);font-size:12px;background-color:rgb(255, 255, 255);line-height:1">
<span style="font-family:Arial, Helvetica, sans-serif;margin:0px;box-sizing:border-box">South Dakota Mines</span></p>
<p style="font-family:"Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;text-align:start;box-sizing:border-box;margin-top:0.5em;margin-bottom:0.5em;color:rgb(117, 120, 123);font-size:12px;background-color:rgb(255, 255, 255);line-height:1">
<span style="font-family:Arial, Helvetica, sans-serif;margin:0px;box-sizing:border-box">EEP 229</span></p>
<p style="font-family:"Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;text-align:start;box-sizing:border-box;margin-top:0.5em;margin-bottom:0.5em;color:rgb(117, 120, 123);font-size:12px;background-color:rgb(255, 255, 255);line-height:1">
<span style="font-family:Arial, Helvetica, sans-serif;margin:0px;box-sizing:border-box">501 E. Saint Joseph St., Rapid City, SD 57701</span></p>
<p style="font-family:"Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;text-align:start;box-sizing:border-box;margin-top:0.5em;margin-bottom:0.5em;color:rgb(117, 120, 123);font-size:12px;background-color:rgb(255, 255, 255);line-height:1">
<span style="font-family:Arial, Helvetica, sans-serif;margin:0px;box-sizing:border-box">724.510.1253 |<span style="margin:0px"> </span><a href="mailto:Brandon.Scott@sdsmt.edu" style="margin:0px;box-sizing:border-box;color:rgb(56, 94, 157);background-color:rgba(0, 0, 0, 0)">Brandon.Scott@sdsmt.edu</a></span></p>
<p style="font-family:"Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;text-align:start;box-sizing:border-box;margin-top:1.5em;margin-bottom:1rem;color:rgb(117, 120, 123);font-size:12px;background-color:rgb(255, 255, 255);line-height:1">
<a href="https://www.sdsmt.edu/" style="margin:0px;box-sizing:border-box;color:rgb(0, 37, 84);background-color:rgba(0, 0, 0, 0)"><img width="263" height="35" alt="South Dakota Mines" style="border:0px none;margin:0px;vertical-align:middle;box-sizing:border-box;height:35px;width:263px" src="https://interact.sdsmt.edu/mc/email-sig/img/sig-logo.ac1541a5.png"></a></p>
</div>
</div>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Elaine Meng <meng@cgl.ucsf.edu><br>
<b>Sent:</b> Thursday, October 20, 2022 4:59 PM<br>
<b>To:</b> Scott, Brandon L. <Brandon.Scott@sdsmt.edu><br>
<b>Cc:</b> ChimeraX-users@cgl.ucsf.edu <chimerax-users@cgl.ucsf.edu><br>
<b>Subject:</b> [EXT] Re: [chimerax-users] Change luminance in color palette</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText"> *** This email is from an EXTERNAL sender. Use CAUTION before opening attachments or clicking links.***<br>
<br>
Hi Brandon!<br>
There is no built-in capability for 2D palettes.<br>
<br>
You can use RGB, Hex, etc. to define the colors in a palette, so it can be any colors you want, see the "color1:color2:color3" or "value,color" pairs options:<br>
<br>
<<a href="https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Frbvi.ucsf.edu%2Fchimerax%2Fdocs%2Fuser%2Fcommands%2Fcolor.html%23palette-options&data=05%7C01%7CBrandon.Scott%40sdsmt.edu%7Cdcc38382edc243a1ad1c08dab2eecbed%7C867083e60b14435f9b4e8be26f01d84e%7C0%7C0%7C638019035950569889%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=mtgyrR1hPDTQMzxeIuRbWO56AngJ9yXcpT2OJBpoCF8%3D&reserved=0">https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Frbvi.ucsf.edu%2Fchimerax%2Fdocs%2Fuser%2Fcommands%2Fcolor.html%23palette-options&data=05%7C01%7CBrandon.Scott%40sdsmt.edu%7Cdcc38382edc243a1ad1c08dab2eecbed%7C867083e60b14435f9b4e8be26f01d84e%7C0%7C0%7C638019035950569889%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=mtgyrR1hPDTQMzxeIuRbWO56AngJ9yXcpT2OJBpoCF8%3D&reserved=0</a>><br>
<<a href="https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Frbvi.ucsf.edu%2Fchimerax%2Fdocs%2Fuser%2Fcommands%2Fcolornames.html&data=05%7C01%7CBrandon.Scott%40sdsmt.edu%7Cdcc38382edc243a1ad1c08dab2eecbed%7C867083e60b14435f9b4e8be26f01d84e%7C0%7C0%7C638019035950569889%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=cTRMl6hE61s%2BFgPrehRvva6C99aWKELuffQFRv7KmIk%3D&reserved=0">https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Frbvi.ucsf.edu%2Fchimerax%2Fdocs%2Fuser%2Fcommands%2Fcolornames.html&data=05%7C01%7CBrandon.Scott%40sdsmt.edu%7Cdcc38382edc243a1ad1c08dab2eecbed%7C867083e60b14435f9b4e8be26f01d84e%7C0%7C0%7C638019035950569889%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=cTRMl6hE61s%2BFgPrehRvva6C99aWKELuffQFRv7KmIk%3D&reserved=0</a>><br>
<br>
However, if you were looking for some (semi)automatic way to scale a set of existing colors, see "color modify":<br>
<<a href="https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Frbvi.ucsf.edu%2Fchimerax%2Fdocs%2Fuser%2Fcommands%2Fcolor.html%23modify&data=05%7C01%7CBrandon.Scott%40sdsmt.edu%7Cdcc38382edc243a1ad1c08dab2eecbed%7C867083e60b14435f9b4e8be26f01d84e%7C0%7C0%7C638019035950569889%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=IiGaXhmOV2qGlom5C8klrmut%2BwwlapzUvyhaBbfn5%2FA%3D&reserved=0">https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Frbvi.ucsf.edu%2Fchimerax%2Fdocs%2Fuser%2Fcommands%2Fcolor.html%23modify&data=05%7C01%7CBrandon.Scott%40sdsmt.edu%7Cdcc38382edc243a1ad1c08dab2eecbed%7C867083e60b14435f9b4e8be26f01d84e%7C0%7C0%7C638019035950569889%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=IiGaXhmOV2qGlom5C8klrmut%2BwwlapzUvyhaBbfn5%2FA%3D&reserved=0</a>><br>
<br>
That command allows adjusting lightness (not sure if that is the same as luminance) but because different colors start out at different lightnesses, applying uniform scaling is likely to make some values "max out" sooner than others, losing the distinction
among them. You can experiment with it and see what you think, however.<br>
<br>
I hope this helps,<br>
Elaine<br>
-----<br>
Elaine C. Meng, Ph.D.<br>
UCSF Chimera(X) team<br>
Department of Pharmaceutical Chemistry<br>
University of California, San Francisco<br>
<br>
> On Oct 20, 2022, at 2:03 PM, Scott, Brandon L. via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:<br>
><br>
> I am coloring surfaces using palettes (purples or a custom green-white-magenta). These both have a single luminance value, is it possible to generate a color palette that also has changing luminance. The ideal palette would be green -> white -> magenta along
the color axis, and 0 - > 255 scaling the luminance of the rgb. We would effectively have a color bar matrix that goes from dark green to black to dark magenta if the values are low and bright green to white to bright magenta if the values are high.<br>
><br>
> Thanks for your insights!<br>
> -Brandon<br>
><br>
> Brandon Scott, PhD<br>
> CZI Imaging Scientist, Assistant Professor<br>
> Nanoscience & Biomedical Engineering<br>
> South Dakota Mines<br>
> EEP 229<br>
> 501 E. Saint Joseph St., Rapid City, SD 57701<br>
> 724.510.1253 | Brandon.Scott@sdsmt.edu<br>
><br>
><br>
> _______________________________________________<br>
> ChimeraX-users mailing list<br>
> ChimeraX-users@cgl.ucsf.edu<br>
> Manage subscription:<br>
> <a href="https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.rbvi.ucsf.edu%2Fmailman%2Flistinfo%2Fchimerax-users&data=05%7C01%7CBrandon.Scott%40sdsmt.edu%7Cdcc38382edc243a1ad1c08dab2eecbed%7C867083e60b14435f9b4e8be26f01d84e%7C0%7C0%7C638019035950569889%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=X8EzktVnzGwQFsO39rl7z4bVz4isFupMyecIQYG4JXg%3D&reserved=0">
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.rbvi.ucsf.edu%2Fmailman%2Flistinfo%2Fchimerax-users&data=05%7C01%7CBrandon.Scott%40sdsmt.edu%7Cdcc38382edc243a1ad1c08dab2eecbed%7C867083e60b14435f9b4e8be26f01d84e%7C0%7C0%7C638019035950569889%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=X8EzktVnzGwQFsO39rl7z4bVz4isFupMyecIQYG4JXg%3D&reserved=0</a><br>
<br>
</div>
</span></font></div>
</body>
</html>