Hi, 
Could anyone explain how to define a ClutterRectangle filled with color, 
border and opacity. The problem is, when I define a opacity for a 
ClutterRectangle, the opacity is not getting applied if the rectangle has 
a border. 

Consider the following example, 
ClutterRectangle* pRect = clutter_rectangle_new_with_color 
(clutter_color_new (0, 0, 0, 0) );  // A rectangle filled with "black" 
color
clutter_rectangle_set_border_color  (pRect, clutter_color_new("white") ); 
//Set the rectangle border as "white" color
clutter_rectangle_set_border_width (pRect, 1);
clutter_actor_set_size( CLUTTER_ACTOR(pRect), 40, 50);
clutter_actor_set_opacity( CLUTTER_ACTOR(pRect), 125); //Set the rectangle 
to 50% transparent.

In this example, the opacity is not getting applied, as the 
ClutterRectangle is defined with border. 
However, the opacity is applied when the rectangle is defined without a 
border. Could anyone please help me? 

Thanks, 
Selva
_______________________________________________
clutter-app-devel-list mailing list
[email protected]
http://lists.clutter-project.org/listinfo/clutter-app-devel-list

Reply via email to