← Back to team overview

kicad-developers team mailing list archive

Re: Layer Properties Dialog and limited number of colours


Brian Sidebotham a écrit :

Hi Guys,

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 code) 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.

Jean-Pierre CHARRAS

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

Recherche :
Rue de la Houille Blanche
38400 Saint Martin d'Heres

Follow ups