Author Topic: Dxf and color values ?  (Read 95 times)

Maverick

  • Newbie
  • *
  • Posts: 24
    • View Profile
Dxf and color values ?
« on: June 19, 2018, 04:25:49 PM »
Hello all,

It's uni holidays and I would like to try setting laser power with colors, now I know this is how it is mapped,
 
               Default
Color        Power     Percentage
BLACK        255        100%
RED           204          80%
PUR/ORA    153          60%
BLUE          102          40%
GREEN        51           20%
YELLOW       0             0%

But when using inkscape, does it matter what "type" of green it is to achieve the 20% power ?

ie: Yellow is 255, 255, 0 (RGB) Orange is 255, 127, 0 (RGB) etc are there specific values to allow T2 to recognise the right color ?

Also does this work for raster images too, like different sections in a PNG file, set to different colors will change the laser power accordingly ?

Kind regards,
Bryce 

Zax

  • T2Laser
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5874
    • View Profile
    • T2Laser
Re: Dxf and color values ?
« Reply #1 on: June 19, 2018, 06:04:51 PM »
DXF colors are referenced by number so itís down to the export. I created a palette for Inkscape to make it easy (Iím not on my PC so canít attach it but if you email me I can send it to you). For your green example 0,255,0 would guarantee it is correct but likely other greens are also saved as DXF green.

Images are assigned by grey scale value so yes you can do something similar but to make it easy just use different grey levels.

pascalp

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Dxf and color values ?
« Reply #2 on: June 19, 2018, 10:56:51 PM »
Eleksmaker A5 , 2500mW
Mana SE , home switches D9 , 1kohm resistor.  GRBL 1.1
Mostly Tablet and W10
T2 Laser : registered  .  BCL : registered

Zax

  • T2Laser
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5874
    • View Profile
    • T2Laser
Re: Dxf and color values ?
« Reply #3 on: June 20, 2018, 04:39:12 AM »
@pascalp Thank you!

Here's another great resource showing how DXF colors map to RGB but as I said it's really a function of the export and some software may not map correctly.

http://sub-atomic.com/~moses/acadcolors.html