File: layer_colors.html

package info (click to toggle)
pcb-rnd 3.1.7b-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 33,108 kB
  • sloc: ansic: 213,400; yacc: 6,241; sh: 4,698; awk: 3,016; makefile: 2,254; lex: 1,166; python: 519; xml: 261; lisp: 154; tcl: 67; perl: 34; javascript: 6; ruby: 5
file content (54 lines) | stat: -rw-r--r-- 2,267 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title> pcb-rnd user manual </title>
	<meta http-equiv="Content-Type" content="text/html;charset=us-ascii">
	<link rel="stylesheet" type="text/css" href="../default.css">
</head>
<body>
<h1> pcb-rnd User Manual: Appendix </h1>
<p>
<h2> 9.4 Layer colors</h2>
<p>
Each layer has its own layer color. Starting with lihata board v5, the
layer color is saved to and loaded from board files. Layers retain their
color even when they are moved within or between layer groups.
<p>
In parallel to this mechanism, there is a set of <i>default</i> colors
defined in the conf subsystem: a set of default copper layer colors and
specific default colors for paste, mask and silk layers.
<p>
There are only two cases when the default colors from the config subsystem
are used:
<ul>
<li>
When a new layer is created or a layer without color specified is loaded
from a file or when a layer is loaded from a file format that does not
support per layer color, a default color is assigned from the config,
depending on the layer type. 

<li>
When an object needs to be displayed out of the board, e.g. in the footprint
preview window of the library dialog
</ul>
<p>
Composite rendering: positive layers are always rendered using their own
layer color (e.g. it is possible to define two silk layers in the top silk
group with two different colors, and the silk drawing on screen will have
two colors). A negative layer's color is normally invisible, thus does not
matter, because objects of a negative layer are removing pixels, not drawing
them.
<p>
When a composite layer group is rendered with the first layer being negative
(typical for mask), the rendering code needs to apply a fill that covers
the whole board, so the negative layer objects can cut out from that fill. The
color of this fill is the color of the first layer.
<p>
<b>Limitation:</b> per board per layer custom color is supported by pcb-rnd but
is not supported by many of the other PCB editors and file formats. Thus
saving the board to an alien format (or to a lihata board version v4 or lower),
the layer color info is lost. There is no explicit warning is generated
about this.

</body>
</html>