Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Rendering background colour setting #229

Open
jaehongk opened this issue May 6, 2023 · 0 comments
Open

Rendering background colour setting #229

jaehongk opened this issue May 6, 2023 · 0 comments

Comments

@jaehongk
Copy link

jaehongk commented May 6, 2023

Hello, first of all, thank you for the great library.

I am trying to change the background colour of the rendered PCB board, which the default setting is (COLORS['fr-4']). I wish to have the background colour as black, where I have tried by manually changing the theme.py

self.background = kwargs.get('background', RenderSettings(COLORS['black']))

but I have failed to see the changes. I have also tried

ctx = GerberCairoContext()
ctx.background_color = (0.0, 0.0, 0.0)

May I know how I may change the background colour settings, please? Thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant