[chimerax-users] Get color code of a custom color
Elaine Meng
meng at cgl.ucsf.edu
Sun Feb 9 09:17:03 PST 2020
Hi Ahmad,
When you were doing the coloring (i.e. when you made the color), if you used a Color Chooser dialog it may show the hex code or R,G,B component values for the color. If you know either of these definitions of the color, then you can define a color name for that with the “color name” command.
<http://rbvi.ucsf.edu/chimerax/docs/user/commands/color.html#name>
Then to have this color and its name whenever you use ChimeraX, you could put that “color name” command in your Preferences in the Startup section.
<http://rbvi.ucsf.edu/chimerax/docs/user/preferences.html>
<http://rbvi.ucsf.edu/chimerax/docs/user/preferences.html#startup>
If you did the coloring in the past but don’t remember now the hex code or R,G,B values it may be possible to look it up in ChimeraX, e.g. if it is the model color shown in the square in the Model panel, if you click the square it will bring up the Color Chooser already set to that color. However, in general if it was just used for some specific atoms or residues, there isn’t a way to go backwards to look it up.
Some apps (Photoshop maybe?) have a feature where you can sample any part of your screen and it will tell you the color definition, but there is nothing like that in ChimeraX.
I hope this helps,
Elaine
-----
Elaine C. Meng, Ph.D.
UCSF Chimera(X) team
Department of Pharmaceutical Chemistry
University of California, San Francisco
> On Feb 9, 2020, at 12:10 AM, Ahmad Khalifa <underoath006 at gmail.com> wrote:
>
> I created a custom color that I want to use in a different session.
>
> is there a way to do that besides trying to match colors by eye?
>
> Regards.
More information about the ChimeraX-users
mailing list