AutoCAD 256 Color vs Windows' colors

Discussion in 'AutoCAD' started by 3ABTPA, Oct 14, 2004.

  1. 3ABTPA

    3ABTPA Guest

    Is there any algorithm to convert 1-to-255 color numbers to Hex numbers, or
    255 numbers are very `empiric?
    Thanks,
     
    3ABTPA, Oct 14, 2004
    #1
  2. 3ABTPA

    Gordon Price Guest

    I don't have a formula, but in R2005 (and I think R2004) you can get the
    values from LayerManager. Create a layer and give it an Index Color, then
    hit the True Color tab. For Index Color 40 I get RGB 255/191/0 and HSL
    45/100/50.

    If your goal is just to be able to match to Index colors in PhotoShop this
    works for small numbers of colors. Painful for large numbers.

    Best,
    Gordon
     
    Gordon Price, Oct 15, 2004
    #2
  3. 3ABTPA

    3ABTPA Guest

    doslib15 has (dos_acitorgb aci-value) function which does the conversion,
    but my question was just the algorithm if there is on for such a conversion.

    Thank for your response,
     
    3ABTPA, Oct 15, 2004
    #3
  4. 3ABTPA

    BillZ Guest

    "C:\Program Files\AutoCAD 2005\Sample\VisualLISP"

    color-util.lsp

    has aci to rgb and colorbook conversion code.

    Bill
     
    BillZ, Oct 15, 2004
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.