discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

How to chenge the background color when exporting PNGs.

L
loskiorama
Thu, May 21, 2015 2:58 PM

I'm using the command line export to PNG option.
and I'd like the background color to be white on the exported images insted
of the yelowwish that comes by default.

How could I do this?

Best!

--
View this message in context: http://forum.openscad.org/How-to-chenge-the-background-color-when-exporting-PNGs-tp12721.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

I'm using the command line export to PNG option. and I'd like the background color to be white on the exported images insted of the yelowwish that comes by default. How could I do this? Best! -- View this message in context: http://forum.openscad.org/How-to-chenge-the-background-color-when-exporting-PNGs-tp12721.html Sent from the OpenSCAD mailing list archive at Nabble.com.
MK
Marius Kintel
Mon, May 25, 2015 9:09 PM

On May 21, 2015, at 10:58 AM, loskiorama alejandro@sur3d.com wrote:

I'm using the command line export to PNG option.
and I'd like the background color to be white on the exported images insted
of the yelowwish that comes by default.

How could I do this?

It’s possible to specify which color scheme to use on the cmd-line, e.g: openscad —colorscheme=Metallic
It’s also possible to add new color schemes, but this currently has to be done manually by adding JSON files to the color-schemes folder in your OpenSCAD installation.

Adding a cmd-line option to override the background color could be interesting though.

-Marius

On May 21, 2015, at 10:58 AM, loskiorama <alejandro@sur3d.com> wrote: > I'm using the command line export to PNG option. > and I'd like the background color to be white on the exported images insted > of the yelowwish that comes by default. > > How could I do this? > It’s possible to specify which color scheme to use on the cmd-line, e.g: openscad —colorscheme=Metallic It’s also possible to add new color schemes, but this currently has to be done manually by adding JSON files to the color-schemes folder in your OpenSCAD installation. Adding a cmd-line option to override the background color could be interesting though. -Marius
MH
Miro Hrončok
Mon, May 25, 2015 9:12 PM

Adding a cmd-line option to override the background color could be interesting though.

Best thing would be to be able to export with transparent background.

> Adding a cmd-line option to override the background color could be interesting though. Best thing would be to be able to export with transparent background.
MK
Marius Kintel
Mon, May 25, 2015 9:19 PM

On May 25, 2015, at 17:12 PM, Miro Hrončok miro@hroncok.cz wrote:

Adding a cmd-line option to override the background color could be interesting though.

Best thing would be to be able to export with transparent background.

Yep, such an option should be able to take an alpha parameter

-Marius

On May 25, 2015, at 17:12 PM, Miro Hrončok <miro@hroncok.cz> wrote: >> Adding a cmd-line option to override the background color could be interesting though. > > Best thing would be to be able to export with transparent background. > Yep, such an option should be able to take an alpha parameter -Marius