Jump to content
Developer Wiki and Function Reference Links ×

Color Index question


michaelk

Recommended Posts

  • Vectorworks, Inc Employee

You should have access to the standard 255 of the classic Vectorworks color palette if you want to pick a color by index.

New colors will be generated with indexes greater than 255.

The good thing about this is that the first 255 colors will always be the same color from the Vectorworks color palette, previously if the user changed the color palette you would not know what color you would get using the index.

You can use ColorIndexToRGBN and RGBToColorIndexN if you need to find or create a color.

Link to comment

The color index refers to the number of colors in a palette.

You should have a utility that can draw the active palette on a layer and if you export this chart to vectorscript it will write each color index with the corresponding RGB color values.

As far as I know, only the first 16 index colors in the vw classic palette were fixed/reserved but the rest could be any color so you could create your own color palettes

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...