discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Default color?

AM
Adrian Mariano
Sun, Mar 20, 2022 1:33 AM

I did a bunch of searching for OpenSCAD and color and got none of that.
Especially the reference to predefined color schemes in the first reference
is pretty easy to miss.  Is monotone only usable from the command line?  I
mean, it didn't occur to me that there were color schemes and I wasn't
looking for that thing exactly.

On Sat, Mar 19, 2022 at 9:27 PM MichaelAtOz oz.at.michael@gmail.com wrote:

How do you even learn this is possible other than by asking here?

https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/The_OpenSCAD_User_Interface

There are predefined color schemes that can be selected in the Preferences
dialog.

https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_OpenSCAD_in_a_command_line_environment

--colorscheme arg            =colorscheme: *Cornfield | Metallic | Sunset |

                           Starnight | BeforeDawn | Nature | DeepOcean |

                           Solarized | Tomorrow | Tomorrow Night |

Monotone

https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Print_version#Chapter_7_--_Path_locations

·  render color schemes: [ResourcesPath]/color-schemes/render

·  editor color schemes: [ResourcesPath]/color-schemes/editor

-----Original Message-----

From: Adrian Mariano [mailto:avm4@cornell.edu]

Sent: Sun, 20 Mar 2022 12:10

To: OpenSCAD general discussion

Subject: [OpenSCAD] Re: Default colour?

How do you even learn this is possible other than by asking here?

Read the source?

The library function I'm writing---color an object but not its

children---requires a way to produce the default color.  I guess I can

make a $default_color variable so users can fix it if they're using a

different scheme, but it seems like there ought to be a way to produce

the default color.

On Sat, Mar 19, 2022 at 8:52 PM Torsten Paul Torsten.Paul@gmx.de

wrote:

On 20.03.22 00:19, Adrian Mariano wrote:

so it's presumably reasonably safe to assume that the

default color scheme is in force.

Nope. I'm always using the Tomorrow styles for both rendering and

editor. From the screenshots attached to github issues and posts on

twitter, it's safe to assume there's at least a good percentage of

people switching to other color schemes than the default Cornfield.

ciao,

Torsten.

OpenSCAD mailing list

To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list

To unsubscribe send an email to discuss-leave@lists.openscad.org

I did a bunch of searching for OpenSCAD and color and got none of that. Especially the reference to predefined color schemes in the first reference is pretty easy to miss. Is monotone only usable from the command line? I mean, it didn't occur to me that there were color schemes and I wasn't looking for that thing exactly. On Sat, Mar 19, 2022 at 9:27 PM MichaelAtOz <oz.at.michael@gmail.com> wrote: > > How do you even learn this is possible other than by asking here? > > > > > https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/The_OpenSCAD_User_Interface > > > > There are predefined color schemes that can be selected in the Preferences > dialog. > > > > > https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_OpenSCAD_in_a_command_line_environment > > --colorscheme arg =colorscheme: *Cornfield | Metallic | Sunset | > > Starnight | BeforeDawn | Nature | DeepOcean | > > Solarized | Tomorrow | Tomorrow Night | > Monotone > > > > > https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Print_version#Chapter_7_--_Path_locations > > > > · render color schemes: *[ResourcesPath]*/color-schemes/render > > · editor color schemes: *[ResourcesPath]*/color-schemes/editor > > > > > > > -----Original Message----- > > > From: Adrian Mariano [mailto:avm4@cornell.edu] > > > Sent: Sun, 20 Mar 2022 12:10 > > > To: OpenSCAD general discussion > > > Subject: [OpenSCAD] Re: Default colour? > > > > > > How do you even learn this is possible other than by asking here? > > > Read the source? > > > > > > The library function I'm writing---color an object but not its > > > children---requires a way to produce the default color. I guess I can > > > make a $default_color variable so users can fix it if they're using a > > > different scheme, but it seems like there ought to be a way to produce > > > the default color. > > > > > > > > > On Sat, Mar 19, 2022 at 8:52 PM Torsten Paul <Torsten.Paul@gmx.de> > wrote: > > > > > > > > On 20.03.22 00:19, Adrian Mariano wrote: > > > > > so it's presumably reasonably safe to assume that the > > > > > default color scheme is in force. > > > > > > > > Nope. I'm always using the Tomorrow styles for both rendering and > > > > editor. From the screenshots attached to github issues and posts on > > > > twitter, it's safe to assume there's at least a good percentage of > > > > people switching to other color schemes than the default Cornfield. > > > > > > > > ciao, > > > > Torsten. > > > > _______________________________________________ > > > > OpenSCAD mailing list > > > > To unsubscribe send an email to discuss-leave@lists.openscad.org > > > _______________________________________________ > > > OpenSCAD mailing list > > > To unsubscribe send an email to discuss-leave@lists.openscad.org > > > <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> Virus-free. > www.avg.com > <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> > <#m_-2577609604945207880_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
M
MichaelAtOz
Sun, Mar 20, 2022 4:17 AM

Is monotone only usable from the command line?

See "show-in-gui" below, I don't know why it is set that way, possibly intended for the test framework(?), but you could edit that.

Or take a copy under another name.

{

"name" : "Monotone",

"index" : 9999,

"show-in-gui" : false,

"description" : "Color scheme with no difference between 'back face' and 'front face'",



"colors" : {

    "background" :         "#ffffe5",

    "axes-color" :         "#191916",

    "opencsg-face-front" : "#f9d72c",

    "opencsg-face-back" :  "#f9d72c",

    "cgal-face-front" :    "#f9d72c",

    "cgal-face-back" :     "#f9d72c",

    "cgal-face-2d" :       "#00bf99",

    "cgal-edge-front" :    "#ff0000",

    "cgal-edge-back" :     "#ff0000",

    "cgal-edge-2d" :       "#ff0000",

    "crosshair" :          "#800000"

}

}


From: Adrian Mariano [mailto:avm4@cornell.edu]
Sent: Sun, 20 Mar 2022 12:34
To: OpenSCAD general discussion
Subject: [OpenSCAD] Re: Default colour?

I did a bunch of searching for OpenSCAD and color and got none of that.  Especially the reference to predefined color schemes in the first reference is pretty easy to miss.  Is monotone only usable from the command line?  I mean, it didn't occur to me that there were color schemes and I wasn't looking for that thing exactly.

On Sat, Mar 19, 2022 at 9:27 PM MichaelAtOz oz.at.michael@gmail.com wrote:

How do you even learn this is possible other than by asking here?

https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/The_OpenSCAD_User_Interface

There are predefined color schemes that can be selected in the Preferences dialog.

https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_OpenSCAD_in_a_command_line_environment

--colorscheme arg            =colorscheme: *Cornfield | Metallic | Sunset |

                          Starnight | BeforeDawn | Nature | DeepOcean |

                          Solarized | Tomorrow | Tomorrow Night | Monotone

https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Print_version#Chapter_7_--_Path_locations

  • render color schemes: [ResourcesPath]/color-schemes/render

  • editor color schemes: [ResourcesPath]/color-schemes/editor

-----Original Message-----

From: Adrian Mariano [mailto:avm4@cornell.edu]

Sent: Sun, 20 Mar 2022 12:10

To: OpenSCAD general discussion

Subject: [OpenSCAD] Re: Default colour?

How do you even learn this is possible other than by asking here?

Read the source?

The library function I'm writing---color an object but not its

children---requires a way to produce the default color.  I guess I can

make a $default_color variable so users can fix it if they're using a

different scheme, but it seems like there ought to be a way to produce

the default color.

On Sat, Mar 19, 2022 at 8:52 PM Torsten Paul Torsten.Paul@gmx.de wrote:

On 20.03.22 00:19, Adrian Mariano wrote:

so it's presumably reasonably safe to assume that the

default color scheme is in force.

Nope. I'm always using the Tomorrow styles for both rendering and

editor. From the screenshots attached to github issues and posts on

twitter, it's safe to assume there's at least a good percentage of

people switching to other color schemes than the default Cornfield.

ciao,

Torsten.

OpenSCAD mailing list

To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list

To unsubscribe send an email to discuss-leave@lists.openscad.org

> Is monotone only usable from the command line? See "show-in-gui" below, I don't know why it is set that way, possibly intended for the test framework(?), but you could edit that. Or take a copy under another name. { "name" : "Monotone", "index" : 9999, "show-in-gui" : false, "description" : "Color scheme with no difference between 'back face' and 'front face'", "colors" : { "background" : "#ffffe5", "axes-color" : "#191916", "opencsg-face-front" : "#f9d72c", "opencsg-face-back" : "#f9d72c", "cgal-face-front" : "#f9d72c", "cgal-face-back" : "#f9d72c", "cgal-face-2d" : "#00bf99", "cgal-edge-front" : "#ff0000", "cgal-edge-back" : "#ff0000", "cgal-edge-2d" : "#ff0000", "crosshair" : "#800000" } } _____ From: Adrian Mariano [mailto:avm4@cornell.edu] Sent: Sun, 20 Mar 2022 12:34 To: OpenSCAD general discussion Subject: [OpenSCAD] Re: Default colour? I did a bunch of searching for OpenSCAD and color and got none of that. Especially the reference to predefined color schemes in the first reference is pretty easy to miss. Is monotone only usable from the command line? I mean, it didn't occur to me that there were color schemes and I wasn't looking for that thing exactly. On Sat, Mar 19, 2022 at 9:27 PM MichaelAtOz <oz.at.michael@gmail.com> wrote: > How do you even learn this is possible other than by asking here? https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/The_OpenSCAD_User_Interface There are predefined color schemes that can be selected in the Preferences dialog. https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_OpenSCAD_in_a_command_line_environment --colorscheme arg =colorscheme: *Cornfield | Metallic | Sunset | Starnight | BeforeDawn | Nature | DeepOcean | Solarized | Tomorrow | Tomorrow Night | Monotone https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Print_version#Chapter_7_--_Path_locations * render color schemes: [ResourcesPath]/color-schemes/render * editor color schemes: [ResourcesPath]/color-schemes/editor > -----Original Message----- > From: Adrian Mariano [mailto:avm4@cornell.edu] > Sent: Sun, 20 Mar 2022 12:10 > To: OpenSCAD general discussion > Subject: [OpenSCAD] Re: Default colour? > > How do you even learn this is possible other than by asking here? > Read the source? > > The library function I'm writing---color an object but not its > children---requires a way to produce the default color. I guess I can > make a $default_color variable so users can fix it if they're using a > different scheme, but it seems like there ought to be a way to produce > the default color. > > > On Sat, Mar 19, 2022 at 8:52 PM Torsten Paul <Torsten.Paul@gmx.de> wrote: > > > > On 20.03.22 00:19, Adrian Mariano wrote: > > > so it's presumably reasonably safe to assume that the > > > default color scheme is in force. > > > > Nope. I'm always using the Tomorrow styles for both rendering and > > editor. From the screenshots attached to github issues and posts on > > twitter, it's safe to assume there's at least a good percentage of > > people switching to other color schemes than the default Cornfield. > > > > ciao, > > Torsten. > > _______________________________________________ > > OpenSCAD mailing list > > To unsubscribe send an email to discuss-leave@lists.openscad.org > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> Virus-free. <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> www.avg.com _______________________________________________ OpenSCAD mailing list To unsubscribe send an email to discuss-leave@lists.openscad.org -- This email has been checked for viruses by AVG. https://www.avg.com
M
MichaelAtOz
Sun, Mar 20, 2022 4:38 AM

I mentioned access to colour scheme in an old Git issue on script access to various internal info.

https://github.com/openscad/openscad/issues/380 you never know your luck...


From: MichaelAtOz [mailto:oz.at.michael@gmail.com]
Sent: Sun, 20 Mar 2022 15:17
To: 'OpenSCAD general discussion'
Subject: [OpenSCAD] Re: Default colour?

Is monotone only usable from the command line?

See "show-in-gui" below, I don't know why it is set that way, possibly intended for the test framework(?), but you could edit that.

Or take a copy under another name.

{

"name" : "Monotone",

"index" : 9999,

"show-in-gui" : false,

"description" : "Color scheme with no difference between 'back face' and 'front face'",



"colors" : {

    "background" :         "#ffffe5",

    "axes-color" :         "#191916",

    "opencsg-face-front" : "#f9d72c",

    "opencsg-face-back" :  "#f9d72c",

    "cgal-face-front" :    "#f9d72c",

    "cgal-face-back" :     "#f9d72c",

    "cgal-face-2d" :       "#00bf99",

    "cgal-edge-front" :    "#ff0000",

    "cgal-edge-back" :     "#ff0000",

    "cgal-edge-2d" :       "#ff0000",

    "crosshair" :          "#800000"

}

}


From: Adrian Mariano [mailto:avm4@cornell.edu]
Sent: Sun, 20 Mar 2022 12:34
To: OpenSCAD general discussion
Subject: [OpenSCAD] Re: Default colour?

I did a bunch of searching for OpenSCAD and color and got none of that.  Especially the reference to predefined color schemes in the first reference is pretty easy to miss.  Is monotone only usable from the command line?  I mean, it didn't occur to me that there were color schemes and I wasn't looking for that thing exactly.

On Sat, Mar 19, 2022 at 9:27 PM MichaelAtOz oz.at.michael@gmail.com wrote:

How do you even learn this is possible other than by asking here?

https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/The_OpenSCAD_User_Interface

There are predefined color schemes that can be selected in the Preferences dialog.

https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_OpenSCAD_in_a_command_line_environment

--colorscheme arg            =colorscheme: *Cornfield | Metallic | Sunset |

                          Starnight | BeforeDawn | Nature | DeepOcean |

                          Solarized | Tomorrow | Tomorrow Night | Monotone

https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Print_version#Chapter_7_--_Path_locations

  • render color schemes: [ResourcesPath]/color-schemes/render

  • editor color schemes: [ResourcesPath]/color-schemes/editor

-----Original Message-----

From: Adrian Mariano [mailto:avm4@cornell.edu]

Sent: Sun, 20 Mar 2022 12:10

To: OpenSCAD general discussion

Subject: [OpenSCAD] Re: Default colour?

How do you even learn this is possible other than by asking here?

Read the source?

The library function I'm writing---color an object but not its

children---requires a way to produce the default color.  I guess I can

make a $default_color variable so users can fix it if they're using a

different scheme, but it seems like there ought to be a way to produce

the default color.

On Sat, Mar 19, 2022 at 8:52 PM Torsten Paul Torsten.Paul@gmx.de wrote:

On 20.03.22 00:19, Adrian Mariano wrote:

so it's presumably reasonably safe to assume that the

default color scheme is in force.

Nope. I'm always using the Tomorrow styles for both rendering and

editor. From the screenshots attached to github issues and posts on

twitter, it's safe to assume there's at least a good percentage of

people switching to other color schemes than the default Cornfield.

ciao,

Torsten.

OpenSCAD mailing list

To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list

To unsubscribe send an email to discuss-leave@lists.openscad.org

I mentioned access to colour scheme in an old Git issue on script access to various internal info. https://github.com/openscad/openscad/issues/380 you never know your luck... _____ From: MichaelAtOz [mailto:oz.at.michael@gmail.com] Sent: Sun, 20 Mar 2022 15:17 To: 'OpenSCAD general discussion' Subject: [OpenSCAD] Re: Default colour? > Is monotone only usable from the command line? See "show-in-gui" below, I don't know why it is set that way, possibly intended for the test framework(?), but you could edit that. Or take a copy under another name. { "name" : "Monotone", "index" : 9999, "show-in-gui" : false, "description" : "Color scheme with no difference between 'back face' and 'front face'", "colors" : { "background" : "#ffffe5", "axes-color" : "#191916", "opencsg-face-front" : "#f9d72c", "opencsg-face-back" : "#f9d72c", "cgal-face-front" : "#f9d72c", "cgal-face-back" : "#f9d72c", "cgal-face-2d" : "#00bf99", "cgal-edge-front" : "#ff0000", "cgal-edge-back" : "#ff0000", "cgal-edge-2d" : "#ff0000", "crosshair" : "#800000" } } _____ From: Adrian Mariano [mailto:avm4@cornell.edu] Sent: Sun, 20 Mar 2022 12:34 To: OpenSCAD general discussion Subject: [OpenSCAD] Re: Default colour? I did a bunch of searching for OpenSCAD and color and got none of that. Especially the reference to predefined color schemes in the first reference is pretty easy to miss. Is monotone only usable from the command line? I mean, it didn't occur to me that there were color schemes and I wasn't looking for that thing exactly. On Sat, Mar 19, 2022 at 9:27 PM MichaelAtOz <oz.at.michael@gmail.com> wrote: > How do you even learn this is possible other than by asking here? https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/The_OpenSCAD_User_Interface There are predefined color schemes that can be selected in the Preferences dialog. https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_OpenSCAD_in_a_command_line_environment --colorscheme arg =colorscheme: *Cornfield | Metallic | Sunset | Starnight | BeforeDawn | Nature | DeepOcean | Solarized | Tomorrow | Tomorrow Night | Monotone https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Print_version#Chapter_7_--_Path_locations * render color schemes: [ResourcesPath]/color-schemes/render * editor color schemes: [ResourcesPath]/color-schemes/editor > -----Original Message----- > From: Adrian Mariano [mailto:avm4@cornell.edu] > Sent: Sun, 20 Mar 2022 12:10 > To: OpenSCAD general discussion > Subject: [OpenSCAD] Re: Default colour? > > How do you even learn this is possible other than by asking here? > Read the source? > > The library function I'm writing---color an object but not its > children---requires a way to produce the default color. I guess I can > make a $default_color variable so users can fix it if they're using a > different scheme, but it seems like there ought to be a way to produce > the default color. > > > On Sat, Mar 19, 2022 at 8:52 PM Torsten Paul <Torsten.Paul@gmx.de> wrote: > > > > On 20.03.22 00:19, Adrian Mariano wrote: > > > so it's presumably reasonably safe to assume that the > > > default color scheme is in force. > > > > Nope. I'm always using the Tomorrow styles for both rendering and > > editor. From the screenshots attached to github issues and posts on > > twitter, it's safe to assume there's at least a good percentage of > > people switching to other color schemes than the default Cornfield. > > > > ciao, > > Torsten. > > _______________________________________________ > > OpenSCAD mailing list > > To unsubscribe send an email to discuss-leave@lists.openscad.org > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> Virus-free. <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> www.avg.com _______________________________________________ OpenSCAD mailing list To unsubscribe send an email to discuss-leave@lists.openscad.org -- This email has been checked for viruses by AVG. https://www.avg.com
AM
Adrian Mariano
Sun, Mar 20, 2022 1:05 PM

This morning I realized that because color can never be changed, only set,
I don't actually need to know the default color.  I just need to know when
the default color is "selected" and then in that case, don't run color().

On Sun, Mar 20, 2022 at 12:39 AM MichaelAtOz oz.at.michael@gmail.com
wrote:

I mentioned access to colour scheme in an old Git issue on script access
to various internal info.

https://github.com/openscad/openscad/issues/380 you never know your
luck...


From: MichaelAtOz [mailto:oz.at.michael@gmail.com]
Sent: Sun, 20 Mar 2022 15:17
To: 'OpenSCAD general discussion'
Subject: [OpenSCAD] Re: Default colour?

Is monotone only usable from the command line?

See "show-in-gui" below, I don't know why it is set that way, possibly
intended for the test framework(?), but you could edit that.

Or take a copy under another name.

{

 "name" : "Monotone",

 "index" : 9999,

 "show-in-gui" : false,

 "description" : "Color scheme with no difference between 'back face'

and 'front face'",

 "colors" : {

     "background" :         "#ffffe5",

     "axes-color" :         "#191916",

     "opencsg-face-front" : "#f9d72c",

     "opencsg-face-back" :  "#f9d72c",

     "cgal-face-front" :    "#f9d72c",

     "cgal-face-back" :     "#f9d72c",

     "cgal-face-2d" :       "#00bf99",

     "cgal-edge-front" :    "#ff0000",

     "cgal-edge-back" :     "#ff0000",

     "cgal-edge-2d" :       "#ff0000",

     "crosshair" :          "#800000"

 }

}


From: Adrian Mariano [mailto:avm4@cornell.edu]
Sent: Sun, 20 Mar 2022 12:34
To: OpenSCAD general discussion
Subject: [OpenSCAD] Re: Default colour?

I did a bunch of searching for OpenSCAD and color and got none of that.
Especially the reference to predefined color schemes in the first reference
is pretty easy to miss.  Is monotone only usable from the command line?  I
mean, it didn't occur to me that there were color schemes and I wasn't
looking for that thing exactly.

On Sat, Mar 19, 2022 at 9:27 PM MichaelAtOz oz.at.michael@gmail.com
wrote:

How do you even learn this is possible other than by asking here?

https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/The_OpenSCAD_User_Interface

There are predefined color schemes that can be selected in the Preferences
dialog.

https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_OpenSCAD_in_a_command_line_environment

--colorscheme arg            =colorscheme: *Cornfield | Metallic | Sunset |

                           Starnight | BeforeDawn | Nature | DeepOcean |

                           Solarized | Tomorrow | Tomorrow Night |

Monotone

https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Print_version#Chapter_7_--_Path_locations

·  render color schemes: [ResourcesPath]/color-schemes/render

·  editor color schemes: [ResourcesPath]/color-schemes/editor

-----Original Message-----

From: Adrian Mariano [mailto:avm4@cornell.edu]

Sent: Sun, 20 Mar 2022 12:10

To: OpenSCAD general discussion

Subject: [OpenSCAD] Re: Default colour?

How do you even learn this is possible other than by asking here?

Read the source?

The library function I'm writing---color an object but not its

children---requires a way to produce the default color.  I guess I can

make a $default_color variable so users can fix it if they're using a

different scheme, but it seems like there ought to be a way to produce

the default color.

On Sat, Mar 19, 2022 at 8:52 PM Torsten Paul Torsten.Paul@gmx.de

wrote:

On 20.03.22 00:19, Adrian Mariano wrote:

so it's presumably reasonably safe to assume that the

default color scheme is in force.

Nope. I'm always using the Tomorrow styles for both rendering and

editor. From the screenshots attached to github issues and posts on

twitter, it's safe to assume there's at least a good percentage of

people switching to other color schemes than the default Cornfield.

ciao,

Torsten.

OpenSCAD mailing list

To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list

To unsubscribe send an email to discuss-leave@lists.openscad.org

This morning I realized that because color can never be changed, only set, I don't actually need to know the default color. I just need to know when the default color is "selected" and then in that case, don't run color(). On Sun, Mar 20, 2022 at 12:39 AM MichaelAtOz <oz.at.michael@gmail.com> wrote: > I mentioned access to colour scheme in an old Git issue on script access > to various internal info. > > https://github.com/openscad/openscad/issues/380 you never know your > luck... > > > ------------------------------ > > *From:* MichaelAtOz [mailto:oz.at.michael@gmail.com] > *Sent:* Sun, 20 Mar 2022 15:17 > *To:* 'OpenSCAD general discussion' > *Subject:* [OpenSCAD] Re: Default colour? > > > > > Is monotone only usable from the command line? > > > > See "show-in-gui" below, I don't know why it is set that way, possibly > intended for the test framework(?), but you could edit that. > > Or take a copy under another name. > > > > { > > "name" : "Monotone", > > "index" : 9999, > > "show-in-gui" : false, > > "description" : "Color scheme with no difference between 'back face' > and 'front face'", > > > > "colors" : { > > "background" : "#ffffe5", > > "axes-color" : "#191916", > > "opencsg-face-front" : "#f9d72c", > > "opencsg-face-back" : "#f9d72c", > > "cgal-face-front" : "#f9d72c", > > "cgal-face-back" : "#f9d72c", > > "cgal-face-2d" : "#00bf99", > > "cgal-edge-front" : "#ff0000", > > "cgal-edge-back" : "#ff0000", > > "cgal-edge-2d" : "#ff0000", > > "crosshair" : "#800000" > > } > > } > > > > > > > ------------------------------ > > *From:* Adrian Mariano [mailto:avm4@cornell.edu] > *Sent:* Sun, 20 Mar 2022 12:34 > *To:* OpenSCAD general discussion > *Subject:* [OpenSCAD] Re: Default colour? > > > > I did a bunch of searching for OpenSCAD and color and got none of that. > Especially the reference to predefined color schemes in the first reference > is pretty easy to miss. Is monotone only usable from the command line? I > mean, it didn't occur to me that there were color schemes and I wasn't > looking for that thing exactly. > > > > On Sat, Mar 19, 2022 at 9:27 PM MichaelAtOz <oz.at.michael@gmail.com> > wrote: > > > How do you even learn this is possible other than by asking here? > > > > > https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/The_OpenSCAD_User_Interface > > > > There are predefined color schemes that can be selected in the Preferences > dialog. > > > > > https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_OpenSCAD_in_a_command_line_environment > > --colorscheme arg =colorscheme: *Cornfield | Metallic | Sunset | > > Starnight | BeforeDawn | Nature | DeepOcean | > > Solarized | Tomorrow | Tomorrow Night | > Monotone > > > > > https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Print_version#Chapter_7_--_Path_locations > > > > · render color schemes: *[ResourcesPath]*/color-schemes/render > > · editor color schemes: *[ResourcesPath]*/color-schemes/editor > > > > > > > -----Original Message----- > > > From: Adrian Mariano [mailto:avm4@cornell.edu] > > > Sent: Sun, 20 Mar 2022 12:10 > > > To: OpenSCAD general discussion > > > Subject: [OpenSCAD] Re: Default colour? > > > > > > How do you even learn this is possible other than by asking here? > > > Read the source? > > > > > > The library function I'm writing---color an object but not its > > > children---requires a way to produce the default color. I guess I can > > > make a $default_color variable so users can fix it if they're using a > > > different scheme, but it seems like there ought to be a way to produce > > > the default color. > > > > > > > > > On Sat, Mar 19, 2022 at 8:52 PM Torsten Paul <Torsten.Paul@gmx.de> > wrote: > > > > > > > > On 20.03.22 00:19, Adrian Mariano wrote: > > > > > so it's presumably reasonably safe to assume that the > > > > > default color scheme is in force. > > > > > > > > Nope. I'm always using the Tomorrow styles for both rendering and > > > > editor. From the screenshots attached to github issues and posts on > > > > twitter, it's safe to assume there's at least a good percentage of > > > > people switching to other color schemes than the default Cornfield. > > > > > > > > ciao, > > > > Torsten. > > > > _______________________________________________ > > > > OpenSCAD mailing list > > > > To unsubscribe send an email to discuss-leave@lists.openscad.org > > > _______________________________________________ > > > OpenSCAD mailing list > > > To unsubscribe send an email to discuss-leave@lists.openscad.org > > > > > <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> > > Virus-free. www.avg.com > <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> > > <#m_2867150417609908886_m_-2577609604945207880_DAB4FAD8-2DD7-40> > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
JB
Jordan Brown
Sun, Mar 20, 2022 3:22 PM

On 3/20/2022 6:05 AM, Adrian Mariano wrote:

This morning I realized that because color can never be changed, only
set, I don't actually need to know the default color.  I just need to
know when the default color is "selected" and then in that case, don't
run color(). 

Still, it seems like maybe color() { ... } or perhaps color(undef) { ...
} should select the default color.

On 3/20/2022 6:05 AM, Adrian Mariano wrote: > This morning I realized that because color can never be changed, only > set, I don't actually need to know the default color.  I just need to > know when the default color is "selected" and then in that case, don't > run color().  > Still, it seems like maybe color() { ... } or perhaps color(undef) { ... } should select the default color.
AM
Adrian Mariano
Sun, Mar 20, 2022 3:37 PM

Not really any difference between color() and color(undef).  I now
have the following:

module _color(color) if (color==undef || color=="default") children();
else color(color) children();

Note that when I save a color I want to be able to distinguish between
a saved color and no saved color, hence the need for a non-undef
default color name.

On Sun, Mar 20, 2022 at 11:22 AM Jordan Brown
openscad@jordan.maileater.net wrote:

On 3/20/2022 6:05 AM, Adrian Mariano wrote:

This morning I realized that because color can never be changed, only set, I don't actually need to know the default color.  I just need to know when the default color is "selected" and then in that case, don't run color().

Still, it seems like maybe color() { ... } or perhaps color(undef) { ... } should select the default color.

Not really any difference between color() and color(undef). I now have the following: module _color(color) if (color==undef || color=="default") children(); else color(color) children(); Note that when I save a color I want to be able to distinguish between a saved color and no saved color, hence the need for a non-undef default color name. On Sun, Mar 20, 2022 at 11:22 AM Jordan Brown <openscad@jordan.maileater.net> wrote: > > On 3/20/2022 6:05 AM, Adrian Mariano wrote: > > This morning I realized that because color can never be changed, only set, I don't actually need to know the default color. I just need to know when the default color is "selected" and then in that case, don't run color(). > > > Still, it seems like maybe color() { ... } or perhaps color(undef) { ... } should select the default color. >
GH
gene heskett
Sun, Mar 20, 2022 5:05 PM

On Sunday, 20 March 2022 11:22:10 EDT Jordan Brown wrote:

On 3/20/2022 6:05 AM, Adrian Mariano wrote:

This morning I realized that because color can never be changed, only
set, I don't actually need to know the default color.  I just need to
know when the default color is "selected" and then in that case,
don't
run color().

Still, it seems like maybe color() { ... } or perhaps color(undef) {
... } should select the default color.

I'd sure agree with that. I am learning how to use color to separate
modules of a more complex part, and would sure appreciate a "cheat sheet"
devoted to using color in the preview as a means to showing that this
part was made by a module whose format was:
module name()
{
color("nameofcolor")
{
rest of module
}
};

Finding that lookup page in the docs is a many minute search thru the
otherwise excellent docs to find that page every time I want to use a
different color.

A additional link to that page of the docs from the help menu would be
"handier than that famous turn button lock on the inside of the outhouse
door" at a family reunion on a Iowa farm in 1940. ;o) Yup, I'm old enough
to remember that.

Like Picard in star trek, make it so. :)

Thank you.

Cheers, Gene Heskett.

"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.

  • Louis D. Brandeis
On Sunday, 20 March 2022 11:22:10 EDT Jordan Brown wrote: > On 3/20/2022 6:05 AM, Adrian Mariano wrote: > > This morning I realized that because color can never be changed, only > > set, I don't actually need to know the default color. I just need to > > know when the default color is "selected" and then in that case, > > don't > > run color(). > > Still, it seems like maybe color() { ... } or perhaps color(undef) { > ... } should select the default color. I'd sure agree with that. I am learning how to use color to separate modules of a more complex part, and would sure appreciate a "cheat sheet" devoted to using color in the preview as a means to showing that this part was made by a module whose format was: module name() { color("nameofcolor") { rest of module } }; Finding that lookup page in the docs is a many minute search thru the otherwise excellent docs to find that page every time I want to use a different color. A additional link to that page of the docs from the help menu would be "handier than that famous turn button lock on the inside of the outhouse door" at a family reunion on a Iowa farm in 1940. ;o) Yup, I'm old enough to remember that. Like Picard in star trek, make it so. :) Thank you. Cheers, Gene Heskett. -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author, 1940) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis
TP
Torsten Paul
Sun, Mar 20, 2022 10:44 PM

On 20.03.22 18:05, gene heskett wrote:

Finding that lookup page in the docs is a many minute search thru the
otherwise excellent docs to find that page every time I want to use a
different color.

I would point you to the console window then.

color("nameofcolor");

F5

In console:

WARNING: Unable to parse color "nameofcolor" in file , line 1
Please see https://en.wikipedia.org/wiki/Web_colors

Now it looks like this needs fixing to be a clickable link
again, but copy pasting that link should not be too hard in
the mean time.

ciao,
Torsten.

On 20.03.22 18:05, gene heskett wrote: > Finding that lookup page in the docs is a many minute search thru the > otherwise excellent docs to find that page every time I want to use a > different color. I would point you to the console window then. color("nameofcolor"); F5 In console: WARNING: Unable to parse color "nameofcolor" in file , line 1 Please see https://en.wikipedia.org/wiki/Web_colors Now it looks like this needs fixing to be a clickable link again, but copy pasting that link should not be too hard in the mean time. ciao, Torsten.
GH
gene heskett
Sun, Mar 20, 2022 10:58 PM

On Sunday, 20 March 2022 18:44:09 EDT Torsten Paul wrote:

On 20.03.22 18:05, gene heskett wrote:

Finding that lookup page in the docs is a many minute search thru the
otherwise excellent docs to find that page every time I want to use a
different color.

I would point you to the console window then.

color("nameofcolor");

F5

In console:

WARNING: Unable to parse color "nameofcolor" in file , line 1
Please see https://en.wikipedia.org/wiki/Web_colors

Now it looks like this needs fixing to be a clickable link
again, but copy pasting that link should not be too hard in
the mean time.

Does that mean it will be fixed in the next AppImage? Goody.

ciao,
Torsten.


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
.

Cheers, Gene Heskett.

"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.

  • Louis D. Brandeis
On Sunday, 20 March 2022 18:44:09 EDT Torsten Paul wrote: > On 20.03.22 18:05, gene heskett wrote: > > Finding that lookup page in the docs is a many minute search thru the > > otherwise excellent docs to find that page every time I want to use a > > different color. > > I would point you to the console window then. > > color("nameofcolor"); > > F5 > > In console: > > WARNING: Unable to parse color "nameofcolor" in file , line 1 > Please see https://en.wikipedia.org/wiki/Web_colors > > Now it looks like this needs fixing to be a clickable link > again, but copy pasting that link should not be too hard in > the mean time. Does that mean it will be fixed in the next AppImage? Goody. > ciao, > Torsten. > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org > . Cheers, Gene Heskett. -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author, 1940) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis
TP
Torsten Paul
Sun, Mar 20, 2022 11:05 PM

On 20.03.22 23:58, gene heskett wrote:

Does that mean it will be fixed in the next AppImage? Goody.

At this point, there's not even a ticket for the issue. I just
saw it when copying the message.

ciao,
Torsten.

On 20.03.22 23:58, gene heskett wrote: > Does that mean it will be fixed in the next AppImage? Goody. At this point, there's not even a ticket for the issue. I just saw it when copying the message. ciao, Torsten.