Print at Dec 16, 2025, 12:30:35 PM View all posts in this thread on one page
Posted by thomasmendozajr at Jan 21, 2023, 5:54:02 AM
Is there away to change 2D background color?
I was wondering if there was a way to change the background color in the 2d window Od rather use a darker color

Posted by Puybaret at Jan 21, 2023, 10:35:56 AM
Re: Is there away to change 2D background color?
Only by program, by calling setBackground method on the plan component.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by Daniels118 at Jan 21, 2023, 10:40:21 AM
Re: Is there away to change 2D background color?
You may import a background image of the color you like. When importing specify a size larger than your home so that it covers the whole plan even if you zoom out.
You have to import the background on each level.
Be aware that a too dark background will reduce the contrast with lines.

Posted by thomasmendozajr at Jan 21, 2023, 2:14:50 PM
Re: Is there away to change 2D background color?
Sounds good but how do I call setbackground on plan component? I haven’t messed with a lot of coding in sweethome3d but that would be great so I can set plans for all my foundations plans and layout plans,

Posted by Puybaret at Jan 21, 2023, 5:59:09 PM
Re: Is there away to change 2D background color?
If you're able to run Sweet Home 3D from code source, simply change implementation of getBackgroundColor and getForegroundColor in PlanComponent class. Otherwise, this might be difficult.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator