Correspondence of color names in Paint Bucket
-
Does anyone know the correspondence of color names in Paint Bucket and Color table?
For example, I select a color "Color_A01" in Paint Bucket, is the color in the Color table https://developers.google.com/sketchup/docs/ourdoc/color?, like "AliceBlue".
The "Color_A01" is select by someone else, I need to know the corresponding name in the table so that I can use it in my ruby code. Is there a corresponding list?
-
I'm not sure that there is any correspondence between the external SKM file's RGB values and the built-in [OpenGL] colors.
You can of course make new materials directly from from colors - like 'AliceBlue' - just by specifying a valid name as the material.
You can also get any material's RGB color values in API code and from that you can compare it to the 'built-in' colors' RGB values.
See the Material AND Color parts of the API docs...
If you have a material already in the SKP why do you need to use a new 'color' based one at all ? -
@tig said:
I'm not sure that there is any correspondence between the external SKM file's RGB values and the built-in [OpenGL] colors.
You can of course make new materials directly from from colors - like 'AliceBlue' - just by specifying a valid name as the material.
You can also get any material's RGB color values in API code and from that you can compare it to the 'built-in' colors' RGB values.
See the Material AND Color parts of the API docs...
If you have a material already in the SKP why do you need to use a new 'color' based one at all ?Hi, TIG. Sorry for my late thanks.
Actually, other people im my group use two styles of colors, e.g.the external SKM file's colors and the built-in [OpenGL] colors. I want to integrate them.
Advertisement