Skip to content

FileInfo.color not working #1

@lumostor

Description

@lumostor

Hi
First thanks a lot for this it is really appreciated.

I'm trying to change the color of layers before to export to PDF, but it is not working, no color change. I"m on kali linux (debian), and python 2.7. Here is the script:

import cups
import PyGerbv

prj = PyGerbv.Project()

drill=prj.open_layer_from_filename("usbasp.drl")
drill.mirror(1,0)
drill.color=(0,1,1,1)
drill.alpha=1

top=prj.open_layer_from_filename("usbasp-F.Cu.gtl")
top.mirror(1,0)
top.color=(0,1,1,1)
top.alpha=1

w=5
h=5
prj.export_pdf_file("usbasp-F.Cu.pdf",  (w, h ))  

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions