Index colors VS RGB colors
Dear All,
Does a table to match Bricscad Index colors and RGB colors exist ?
Thank for your help.
BR
Comments
-
Have a look at this Lisp Code ACI -> RGB at
Load this code and the following routine to create a list of (index_color (R G B)) for all index colors(defun listACI2RGB ( / i li)
)
(setq i 1)
(while (<= i 255)
;(print (list i (LM:ACI->RGB i )))
(setq li (cons (list i (LM:ACI->RGB i )) li)
i (1+ i)
)
)
(reverse li
)
Call with (LISTACI2RGB) and you get the result list
You find attached a text file of the values…..(1 (255 0 0))
(2 (255 255 0))
(3 (0 255 0))
(4 (0 255 255))
(5 (0 0 255))
(6 (255 0 255))
(7 (255 255 255))
(8 (128 128 128))
(9 (192 192 192))
(10 (255 0 0))
(11 (255 127 127))
(12 (204 0 0))
(13 (204 102 102))
(14 (153 0 0))
(15 (153 76 76))
(16 (127 0 0))result list
((255 (255 255 255)) (254 (214 214 214)) (253 (173 173 173)) (252 (132 132 132)) (251 (91 91 91)) (250 (51 51 51)) (249 (76 38 47)) (248 (76 0 19)) (247 (127 63 79)) (246 (127 0 31)) (245 (153 76 95)) (244 (153 0 38)) (243 (204 102 127)) (242 (204 0 51)) (241 (255 127 159)) (240 (255 0 63)) (239 (76 38 57)) (238 (76 0 38)) (237 (127 63 95)) (236 (127 0 63)) (235 (153 76 114)) (234 (153 0 76)) (233 (204 102 153)) (232 (204 0 102)) (231 (255 127 191)) (230 (255 0 127)) (229 (76 38 66)) (228 (76 0 57)) (227 (127 63 111)) (226 (127 0 95)) (225 (153 76 133)) (224 (153 0 114)) (223 (204 102 178)) (222 (204 0 153)) (221 (255 127 223)) (220 (255 0 191)) (219 (76 38 76)) (218 (76 0 76)) (217 (127 63 127)) (216 (127 0 127)) (215 (153 76 153)) (214 (153 0 153)) (213 (204 102 204)) (212 (204 0 204)) (211 (255 127 255)) (210 (255 0 255)) (209 (66 38 76)) (208 (57 0 76)) (207 (111 63 127)) (206 (95 0 127)) (205 (133 76 153)) (204 (114 0 153)) (203 (178 102 204)) (202 (153 0 204)) (201 (223 127 255)) (200 (191 0 255)) (199 (57 38 76)) (198 (38 0 76)) (197 (95 63 127)) (196 (63 0 127)) (195 (114 76 153)) (194 (76 0 153)) (193 (153 102 204)) (192 (102 0 204)) (191 (191 127 255)) (190 (127 0 255)) (189 (47 38 76)) (188 (19 0 76)) (187 (79 63 127)) (186 (31 0 127)) (185 (95 76 153)) (184 (38 0 153)) (183 (127 102 204)) (182 (51 0 204)) (181 (159 127 255)) (180 (63 0 255)) (179 (38 38 76)) (178 (0 0 76)) (177 (63 63 127)) (176 (0 0 127)) (175 (76 76 153)) (174 (0 0 153)) (173 (102 102 204)) (172 (0 0 204)) (171 (127 127 255)) (170 (0 0 255)) (169 (38 47 76)) (168 (0 19 76)) (167 (63 79 127)) (166 (0 31 127)) (165 (76 95 153)) (164 (0 38 153)) (163 (102 127 204)) (162 (0 51 204)) (161 (127 159 255)) (160 (0 63 255)) (159 (38 57 76)) (158 (0 38 76)) (157 (63 95 127)) (156 (0 63 127)) (155 (76 114 153)) (154 (0 76 153)) (153 (102 153 204)) (152 (0 102 204)) (151 (127 191 255)) (150 (0 127 255)) (149 (38 66 76)) (148 (0 57 76)) (147 (63 111 127)) (146 (0 95 127)) (145 (76 133 153)) (144 (0 114 153)) (143 (102 178 204)) (142 (0 153 204)) (141 (127 223 255)) (140 (0 191 255)) (139 (38 76 76)) (138 (0 76 76)) (137 (63 127 127)) (136 (0 127 127)) (135 (76 153 153)) (134 (0 153 153)) (133 (102 204 204)) (132 (0 204 204)) (131 (127 255 255)) (130 (0 255 255)) (129 (38 76 66)) (128 (0 76 57)) (127 (63 127 111)) (126 (0 127 95)) (125 (76 153 133)) (124 (0 153 114)) (123 (102 204 178)) (122 (0 204 153)) (121 (127 255 223)) (120 (0 255 191)) (119 (38 76 57)) (118 (0 76 38)) (117 (63 127 95)) (116 (0 127 63)) (115 (76 153 114)) (114 (0 153 76)) (113 (102 204 153)) (112 (0 204 102)) (111 (127 255 191)) (110 (0 255 127)) (109 (38 76 47)) (108 (0 76 19)) (107 (63 127 79)) (106 (0 127 31)) (105 (76 153 95)) (104 (0 153 38)) (103 (102 204 127)) (102 (0 204 51)) (101 (127 255 159)) (100 (0 255 63)) (99 (38 76 38)) (98 (0 76 0)) (97 (63 127 63)) (96 (0 127 0)) (95 (76 153 76)) (94 (0 153 0)) (93 (102 204 102)) (92 (0 204 0)) (91 (127 255 127)) (90 (0 255 0)) (89 (47 76 38)) (88 (19 76 0)) (87 (79 127 63)) (86 (31 127 0)) (85 (95 153 76)) (84 (38 153 0)) (83 (127 204 102)) (82 (51 204 0)) (81 (159 255 127)) (80 (63 255 0)) (79 (57 76 38)) (78 (38 76 0)) (77 (95 127 63)) (76 (63 127 0)) (75 (114 153 76)) (74 (76 153 0)) (73 (153 204 102)) (72 (102 204 0)) (71 (191 255 127)) (70 (127 255 0)) (69 (66 76 38)) (68 (57 76 0)) (67 (111 127 63)) (66 (95 127 0)) (65 (133 153 76)) (64 (114 153 0)) (63 (178 204 102)) (62 (153 204 0)) (61 (223 255 127)) (60 (191 255 0)) (59 (76 76 38)) (58 (76 76 0)) (57 (127 127 63)) (56 (127 127 0)) (55 (153 153 76)) (54 (153 153 0)) (53 (204 204 102)) (52 (204 204 0)) (51 (255 255 127)) (50 (255 255 0)) (49 (76 66 38)) (48 (76 57 0)) (47 (127 111 63)) (46 (127 95 0)) (45 (153 133 76)) (44 (153 114 0)) (43 (204 178 102)) (42 (204 153 0)) (41 (255 223 127)) (40 (255 191 0)) (39 (76 57 38)) (38 (76 38 0)) (37 (127 95 63)) (36 (127 63 0)) (35 (153 114 76)) (34 (153 76 0)) (33 (204 153 102)) (32 (204 102 0)) (31 (255 191 127)) (30 (255 127 0)) (29 (76 47 38)) (28 (76 19 0)) (27 (127 79 63)) (26 (127 31 0)) (25 (153 95 76)) (24 (153 38 0)) (23 (204 127 102)) (22 (204 51 0)) (21 (255 159 127)) (20 (255 63 0)) (19 (76 38 38)) (18 (76 0 0)) (17 (127 63 63)) (16 (127 0 0)) (15 (153 76 76)) (14 (153 0 0)) (13 (204 102 102)) (12 (204 0 0)) (11 (255 127 127)) (10 (255 0 0)) (9 (192 192 192)) (8 (128 128 128)) (7 (255 255 255)) (6 (255 0 255)) (5 (0 0 255)) (4 (0 255 255)) (3 (0 255 0)) (2 (255 255 0)) (1 (255 0 0)))0 -
You may want to have a look at this:
2 -
It's all good. Thank you very much for ypur help.
0 -
Here's a tricky question, anyone know what is the RGB or Index colour of 'byblock' is?
Secondarily, is this user modifiable?
Consider for example, when making blocks, we set the colour to 'byblock', that way we have colour control of the block after insert, it can also assume the layer colour, 'but' if no colour has been assigned after insert, the block retains 'byblock' which is white in modelspace and black in paperspace.
Would like to assign the 'byblock' colour to something like RGB 128,128,128 or index colour 8, 9 or 253 etc to mitigate this situation.
0 -
BYBLOCK color is color 0. BYLAYER color is 256.
1