kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #09765
Re: Script access to pcb plot
More questions, is it possible to tell the plotter a background color?, something weird for a plotter, right,
but in SVG it would be great to dump in black background too.
I like the plotting design, is gorgeous
Miguel Angel Ajo
http://www.nbee.es
+34911407752
skype: ajoajoajo
On 24/03/2013, at 00:21, Miguel Angel Ajo Pelayo <miguelangel@xxxxxxx> wrote:
> Ok, the plotter will GetLayerColor from the board object, which makes sense,
> but then why does the plotting options has a SetColor, does it work
> for dxf? :)
>
> Would it make sense to have a "DEFAULT" color, and int that case the plotter
> asks for the board->GetLayerColor() and otherwise use the color in the
> color set in the plotting options ?
>
> I could get the same changing the board plotting colors, but may be that's not
> desired in some situations.
>
> Miguel Angel Ajo
> http://www.nbee.es
> +34911407752
> skype: ajoajoajo
>
> On 23/03/2013, at 23:25, Miguel Angel Ajo Pelayo <miguelangel@xxxxxxx> wrote:
>
>>
>> Miguel Angel Ajo
>> http://www.nbee.es
>> +34911407752
>> skype: ajoajoajo
>>
>> On 23/03/2013, at 22:12, Lorenzo Marcantonio <l.marcantonio@xxxxxxxxxxxx> wrote:
>>
>>> On Sat, Mar 23, 2013 at 05:20:37PM +0100, Miguel Angel Ajo Pelayo wrote:
>>>> I've been playing with the PLOT CONTROLLER, and it works great, I added
>>>> this to let SVG & PDF output in colors, but for some reason, the colors
>>>> stay in the default color that kicad uses for a layer, I'm on an ongoing
>>>> investigation about this.
>>>
>>> The SetColorMode is only to override the colors into black and white…
>>
>> Well, for me it was that SVG & PDF remained in B&W until I called SetColorMode(true)
>> on the plotter.
>>
>>> the color is chosen by the individual plot routines, you have to track
>>> them down. I.e. the choice of the color is not in the plot layer, is in
>>> the pcbnew entity classes (most of it…)
>>
>> Ok, now that I have some minutes again will restart my track down,
>> it would be nice to find a way to force colors at plot time.
>>
>>
>> I'm thinking about some pcb-diff tool that takes git/bzr/svn revisions and renders
>> a diff image of the PCB with marks on the zone that changed, it shouldn't be
>> very complicated :) pcb->svg->bitmap pcb->svg->bitmap, xoring both, and then making
>> some beatufilly marked images .
>>
>>
>>
>>>
>>> --
>>> Lorenzo Marcantonio
>>> Logos Srl
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~kicad-developers
>>> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~kicad-developers
>>> More help : https://help.launchpad.net/ListHelp
>>
>
Follow ups
References