[Users-fr] Changer la couleur d'un rectangle (xrect)

classic Classic list List threaded Threaded
2 messages Options
Stef Stef
Reply | Threaded
Open this post in threaded view
|

[Users-fr] Changer la couleur d'un rectangle (xrect)

Tout est dans le titre.

Merci,

--
Stéphane Franiatte, B. ing.

_______________________________________________
users-fr mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users-fr
Serge Steer-2 Serge Steer-2
Reply | Threaded
Open this post in threaded view
|

Re: Changer la couleur d'un rectangle (xrect)

If you want to change the border color of a rectangle created by xrect(x,y,w,h)
You can proceed as follow
xrect(x,y,w,h)
e=gce();e.foreground=6;
//6 is a color index , you can also do
// e.foreground=color("yellow")
If you want to draw a filled rectangle you can do
xrect(x,y,w,h)
e=gce();e.foreground=6;e.background=color("yellow");e.fill_mode='on';

Serge Steer
Le 14/02/2013 15:26, Stéphane Franiatte a écrit :
Tout est dans le titre.

Merci,

--
Stéphane Franiatte, B. ing.


_______________________________________________
users-fr mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users-fr


_______________________________________________
users-fr mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users-fr