Is there away to change 2D background color?

This topic has been viewed 11258 times and has 4 replies
Thread status: Active
Discuss anything here [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
thomasmendozajr
Posts: 12
Joined: Sun Dec 29, 2019 4:32 pm
Country: United States

Is there away to change 2D background color?

Post by thomasmendozajr »

I was wondering if there was a way to change the background color in the 2d window Od rather use a darker color
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Is there away to change 2D background color?

Post by Puybaret »

Only by program, by calling setBackground method on the plan component.
Emmanuel Puybaret, Sweet Home 3D creator
User avatar
Daniels118
Posts: 503
Joined: Wed Nov 17, 2021 9:04 pm
Country: Italy

Re: Is there away to change 2D background color?

Post by Daniels118 »

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.
thomasmendozajr
Posts: 12
Joined: Sun Dec 29, 2019 4:32 pm
Country: United States

Re: Is there away to change 2D background color?

Post by thomasmendozajr »

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,
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Is there away to change 2D background color?

Post by Puybaret »

If you're able to run Sweet Home 3D from code source, simply change implementation of [font=courier new]getBackgroundColor[/font] and [font=courier new]getForegroundColor[/font] in PlanComponent class. Otherwise, this might be difficult.
Emmanuel Puybaret, Sweet Home 3D creator
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest