In lugnet.cad, Kevin Wilson writes:
> Steve Bliss wrote in message ...
> > With LDLite, you can add lines to the main DAT files to control the colors.
> > To modify red, you'd add a line like:
> >
> > 0 COLOR 4 red 0 196 0 38 255 196 0 38 255
> >
> > The '4' is because you're modifying color #4, the 'red' is a name for the
> > color (which you could use in place of the 4 in later commands, if you
> > desired), the '0' is the code for the edge-color you want to use (black),
> > the remaining codes specify the RGB-A values of the color, which are very
> > important, but beside the point for this discussion.
> >
> > Put this line at the top of the file, modifying it for each color you want
> > to change.
> >
> > Unfortunately, I don't think MLCAD will recognize this command. :(
>
> Thanks for the tip Steve - but I think you're right, MLCad doesn't like mods
> to color numbers under 60 IIRC. I will try this again to make sure though.
>
> Larry P suggested there was a way to do it in the LDraw.ini file, but in my
> LDraw.ini there are just lines for the basic colors which don't seem to
> specify edge colors, like:
> [Colors]
> 0=0,Black
> 1=8388608,Blue
> 2=32768,Green
> 3=8421376,Dk Cyan
Yeah, it looks like the default edge colors aren't documented anywhere.
Not even in the missing ldlite 1.6 documentation. But if you jump to
the source code you'll find the supersecret inverse color entries in the
big ldlite color table. See code snippet below. The edge color is the
number immediately following the color name.
I believe in ldlite 2.3 you can stick the 0 COLOR meta-commands
in the ldliterc.dat file (which is also currently undocumented, but
you can search lugnet for "ldliterc" to find some snippets).
ZCOLOR_DEF_TABLE_ENTRY zcolor_table_default[ZCOLOR_TABLE_DEFAULT_SIZE] = {
{"Black", 8,{0x22,0x22,0x22,0xff},{0x22,0x22,0x22,0xff}}, // 0
{"Blue", 9,{0x00,0x33,0xb2,0xff},{0x00,0x33,0xb2,0xff}}, // 1
{"Green", 10,{0x00,0x7f,0x33,0xff},{0x00,0x7f,0x33,0xff}}, // 2
{"Dark-Cyan", 11,{0x00,0xaa,0xaa,0xff},{0x00,0xaa,0xaa,0xff}}, // 3
{"Red", 12,{0xcc,0x00,0x00,0xff},{0xcc,0x00,0x00,0xff}}, // 4
{"Magenta", 13,{0xff,0x33,0x99,0xff},{0xff,0x33,0x99,0xff}}, // 5
{"Brown", 0,{0x66,0x33,0x00,0xff},{0x66,0x33,0x00,0xff}}, // 6
{"Light-Gray", 8,{0xaa,0xaa,0xaa,0xff},{0xaa,0xaa,0xaa,0xff}}, // 7
{"Dark-Gray", 0,{0x66,0x66,0x58,0xff},{0x66,0x66,0x58,0xff}}, // 8
{"Light-Blue", 1,{0x00,0x80,0xff,0xff},{0x00,0x80,0xff,0xff}}, // 9
{"Light-Green", 2,{0x33,0xff,0x66,0xff},{0x33,0xff,0x66,0xff}}, // 10
{"Cyan", 3,{0x55,0xaa,0xff,0xff},{0x55,0xaa,0xff,0xff}}, // 11
{"Light-Red", 4,{0xff,0x55,0x55,0xff},{0xff,0x55,0x55,0xff}}, // 12
{"Pink", 5,{0xff,0xb0,0xcc,0xff},{0xff,0xb0,0xcc,0xff}}, // 13
{"Yellow", 8,{0xff,0xe5,0x00,0xff},{0xff,0xe5,0x00,0xff}}, // 14
{"White", 8,{0xff,0xff,0xff,0xff},{0xff,0xff,0xff,0xff}}, // 15
{"Main-Color", 0,{0x7f,0x7f,0x7f,0xff},{0x7f,0x7f,0x7f,0xff}}, // 16
{"Pastel-Green", 2,{0x66,0xf0,0x99,0xff},{0x66,0xf0,0x99,0xff}}, // 17
{"Light-Yellow", 14,{0xff,0xff,0x80,0xff},{0xff,0xff,0x80,0xff}}, // 18
{"Tan", 6,{0xcc,0xaa,0x66,0xff},{0xcc,0xaa,0x66,0xff}}, // 19
{"Light-Purple", 8,{0xe0,0xcc,0xf0,0xff},{0xe0,0xcc,0xf0,0xff}}, // 20
{"Glow-In-The-Dark", 0,{0xe0,0xff,0xb0,0xff},{0xe0,0xff,0xb0,0xff}}, // 21
{"Purple", 8,{0x99,0x33,0x99,0xff},{0x99,0x33,0x99,0xff}}, // 22
{"Purple-Blue", 8,{0x4c,0x00,0xcc,0xff},{0x4c,0x00,0xcc,0xff}}, // 23
{"Edge-Color", 0,{0x7f,0x7f,0x7f,0xff},{0x7f,0x7f,0x7f,0xff}}, // 24
{"Orange-Solid", 8,{0xff,0x66,0x00,0xff},{0xff,0x66,0x00,0xff}}, // 25
{"Dark-Pink", 0,{0xff,0x33,0x99,0xff},{0xff,0x33,0x99,0xff}}, // 26
{"Lime-Green", 0,{0xad,0xdd,0x50,0xff},{0xad,0xdd,0x50,0xff}}, // 27
{"Tan-Solid", 0,{0xcc,0xaa,0x66,0xff},{0xcc,0xaa,0x66,0xff}}, // 28
{"unused", 0,{0x7f,0x7f,0x7f,0xff},{0x7f,0x7f,0x7f,0xff}}, // 29
{"unused", 0,{0x7f,0x7f,0x7f,0xff},{0x7f,0x7f,0x7f,0xff}}, // 30
{"unused", 0,{0x7f,0x7f,0x7f,0xff},{0x7f,0x7f,0x7f,0xff}}, // 31
{"Trans-Black", 8,{0x22,0x22,0x22,0xff},{0x7f,0x7f,0x7f,0x00}}, // 32
{"Trans-Blue", 9,{0x00,0x00,0x99,0xff},{0x7f,0x7f,0x7f,0x00}}, // 33
{"Trans-Green", 10,{0x00,0x50,0x18,0xff},{0x7f,0x7f,0x7f,0x00}}, // 34
{"Trans-Dark_Cyan", 11,{0x00,0xaa,0xaa,0xff},{0x7f,0x7f,0x7f,0x00}}, // 35
{"Trans-Red", 12,{0xcc,0x00,0x00,0xff},{0x7f,0x7f,0x7f,0x00}}, // 36
{"Trans-Magenta", 13,{0xff,0x33,0x99,0xff},{0x7f,0x7f,0x7f,0x00}}, // 37
{"Trans-Brown", 0,{0x66,0x33,0x00,0xff},{0x7f,0x7f,0x7f,0x00}}, // 38
{"Trans-Light-Gray", 8,{0x99,0x99,0x99,0xff},{0x7f,0x7f,0x7f,0x00}}, // 39
{"Trans-Dark-Gray", 0,{0x66,0x66,0x58,0xff},{0x7f,0x7f,0x7f,0x00}}, // 40
{"Trans-Light-Blue", 1,{0x99,0xc0,0xf0,0xff},{0x7f,0x7f,0x7f,0x00}}, // 41
{"Trans-Light-Green", 2,{0xcc,0xff,0x00,0xff},{0x7f,0x7f,0x7f,0x00}}, // 42
{"Trans-Cyan", 3,{0x55,0xaa,0xff,0xff},{0x7f,0x7f,0x7f,0x00}}, // 43
{"Trans-Light-Red", 4,{0xff,0x55,0x55,0xff},{0x7f,0x7f,0x7f,0x00}}, // 44
{"Trans-Pink", 5,{0xff,0xb0,0xcc,0xff},{0x7f,0x7f,0x7f,0x00}}, // 45
{"Trans-Yellow", 8,{0xf0,0xc4,0x00,0xff},{0x7f,0x7f,0x7f,0x00}}, // 46
{"Trans-White", 8,{0xff,0xff,0xff,0xff},{0x7f,0x7f,0x7f,0x00}}, // 47
{"unused", 0,{0x7f,0x7f,0x7f,0xff},{0x7f,0x7f,0x7f,0x00}}, // 48
{"unused", 2,{0x7f,0x7f,0x7f,0xff},{0x7f,0x7f,0x7f,0x00}}, // 49
{"unused", 0,{0x7f,0x7f,0x7f,0xff},{0x7f,0x7f,0x7f,0x00}}, // 50
{"unused", 0,{0x7f,0x7f,0x7f,0xff},{0x7f,0x7f,0x7f,0x00}}, // 51
{"unused", 0,{0x7f,0x7f,0x7f,0xff},{0x7f,0x7f,0x7f,0x00}}, // 52
{"unused", 0,{0x7f,0x7f,0x7f,0xff},{0x7f,0x7f,0x7f,0x00}}, // 53
{"unused", 0,{0x7f,0x7f,0x7f,0xff},{0x7f,0x7f,0x7f,0x00}}, // 54
{"unused", 0,{0x7f,0x7f,0x7f,0xff},{0x7f,0x7f,0x7f,0x00}}, // 55
{"unused", 0,{0x7f,0x7f,0x7f,0xff},{0x7f,0x7f,0x7f,0x00}}, // 56
{"Trans-Orange", 8,{0xff,0x66,0x00,0xff},{0x7f,0x7f,0x7f,0x00}}, // 57
{"unused", 0,{0x7f,0x7f,0x7f,0xff},{0x7f,0x7f,0x7f,0x00}}, // 58
{"unused", 0,{0x7f,0x7f,0x7f,0xff},{0x7f,0x7f,0x7f,0x00}}, // 59
{"unused", 0,{0x7f,0x7f,0x7f,0xff},{0x7f,0x7f,0x7f,0x00}}, // 60
{"unused", 0,{0x7f,0x7f,0x7f,0xff},{0x7f,0x7f,0x7f,0x00}}, // 61
{"unused", 0,{0x7f,0x7f,0x7f,0xff},{0x7f,0x7f,0x7f,0x00}}, // 62
{"unused", 0,{0x7f,0x7f,0x7f,0xff},{0x7f,0x7f,0x7f,0x00}} // 63
};
|