I'm trying to use the command line interface to generate some part preview
images in PNG format for a project's web documentation. However, the default
background color used appears to be some sort of hideous off-yellow, and I
can't find anything in the documentation that explains how to change this.
Is this possible? If transparent backgrounds aren't supported, how can I at
least change it to pure-white?
--
View this message in context: http://forum.openscad.org/Setting-transparent-background-tp18272.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
In the GUI, in the Preferences, under 3D View, you can set a color scheme,
which also sets the background colour. The Nature color scheme uses a white
background.
There is a CLI option for setting the color scheme, but it doesn't work for
me (on MacOS anyway), only the GUI works.
On 30 August 2016 at 19:54, Cerin chrisspen@gmail.com wrote:
I'm trying to use the command line interface to generate some part preview
images in PNG format for a project's web documentation. However, the
default
background color used appears to be some sort of hideous off-yellow, and I
can't find anything in the documentation that explains how to change this.
Is this possible? If transparent backgrounds aren't supported, how can I at
least change it to pure-white?
--
View this message in context: http://forum.openscad.org/
Setting-transparent-background-tp18272.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
It’s also possible to add your own color schemes: https://github.com/openscad/openscad/wiki/Path-locations
Better docs are needed.
There is a pull request for adding support for transparent backgrounds, but that also requires a bit of work to get to work properly across platforms:
https://github.com/openscad/openscad/pull/1485
Doug: This should also work on Mac, and does for me:
./OpenSCAD.app/Contents/MacOS/OpenSCAD sphere.scad -o out.png --colorscheme=Sunset
-Marius
A bit clumsy, but I just use Paint Shop Pro:
File->Export->PNG Optimizer
Transparency Tab
-Trygon
--
View this message in context: http://forum.openscad.org/Setting-transparent-background-tp18272p18279.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
Thanks, I didn't realize I could create new schemes by dropping a JSON file
into my home directory. That works.
On Tue, Aug 30, 2016 at 11:52 PM, kintel [via OpenSCAD] <
ml-node+s1091067n18274h3@n5.nabble.com> wrote:
It’s also possible to add your own color schemes:
https://github.com/openscad/openscad/wiki/Path-locations
Better docs are needed.
There is a pull request for adding support for transparent backgrounds,
but that also requires a bit of work to get to work properly across
platforms:
https://github.com/openscad/openscad/pull/1485
Doug: This should also work on Mac, and does for me:
./OpenSCAD.app/Contents/MacOS/OpenSCAD sphere.scad -o out.png
--colorscheme=Sunset
-Marius
OpenSCAD mailing list
[hidden email] http:///user/SendEmail.jtp?type=node&node=18274&i=0
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
If you reply to this email, your message will be added to the discussion
below:
http://forum.openscad.org/Setting-transparent-
background-tp18272p18274.html
To unsubscribe from Setting transparent background?, click here
http://forum.openscad.org/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=18272&code=Y2hyaXNzcGVuQGdtYWlsLmNvbXwxODI3MnwxMjg4NzkwNjM4
.
NAML
http://forum.openscad.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
--
View this message in context: http://forum.openscad.org/Setting-transparent-background-tp18272p18389.html
Sent from the OpenSCAD mailing list archive at Nabble.com.