[Gmsh] using GmshSetOptions
Christophe Geuzaine
cgeuzaine at ulg.ac.be
Thu Jul 11 08:46:46 CEST 2013
On 10 Jul 2013, at 17:02, eren adak <erad03 at gmail.com> wrote:
> Hi,
>
> Can I use GmshSetOption() function to change background color programmatically ?
>
> I tried something like
>
> GmshSetOption("General", "Color", "Background", {250,250,250} );
>
Colors are stored as unsigned ints; you can use the packColor function to create those:
GmshSetOption("General", "Background", CTX::instance()->packColor(250,250,250,0));
> I know it is wrong.
>
> How can I use GmshSetOption() to change background color ?
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh
--
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine