kicad-developers team mailing list archive
Mailing list archive
Re: Layer Properties Dialog and limited number of colours
jean-pierre charras <jean-pierre.charras@...>
Fri, 04 Sep 2009 17:12:20 +0200
Thunderbird 18.104.22.168 (Windows/20090812)
Brian Sidebotham a écrit :
Last night I thought I might as well start looking at implimenting the
layer properties dialog (or toolbox) that was discussed a while back.
However, whilst I was reading up on the code, I noticed that KiCAD is
limited to around 20 colours or so that are predefined in an array. Is
there any reason for this in particular?
Yes (for pcbnew).
Pcbnew and Gerbview (but not eeschema) uses the OR mode to draw the
layers on screen (the transparency mode did not exists when i wrote the
I carefully chose the binary values of these colors in order to have
good results in OR mode in screen, to see layers like in tranparency mode.
Maître de conférences
Directeur d'études 2ieme année.
Génie Electrique et Informatique Industrielle 2
Institut Universitaire de Technologie 1 de Grenoble
BP 67, 38402 St Martin d'Heres Cedex
GIPSA-LAB - INPG
Rue de la Houille Blanche
38400 Saint Martin d'Heres