Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Semi Transparent Node ! (Read 1192 times)
Kannan Thirumal
Senior Member
****
Offline


I Love Mind Fusion Diagram
:-)

Posts: 270
Location: Bangalore, India
Joined: Jan 18th, 2019
Semi Transparent Node !
Jul 1st, 2019 at 2:01pm
Print Post  
Hi,

     May I know how to make a shape node semi transparent like the one attached?

Regards,
Kannan
  

Semi_Transparent_Node.png ( 16 KB | 109 Downloads )
Semi_Transparent_Node.png
Back to top
 
IP Logged
 
Lyubo
God Member
*****
Offline


MindFusion team

Posts: 511
Joined: Jun 17th, 2010
Re: Semi Transparent Node !
Reply #1 - Jul 2nd, 2019 at 5:30am
Print Post  
Hi,

You can set a RGBA color value to the node's brush with opacity lower than 1.0 for the alpha channel. You may also need to disable the node's shadow or it will show below the node:
Code (Javascript)
Select All
node.setBrush("rgba(220, 220, 255, 0.6)");
node.setShadowColor("Transparent"); 



Regards,
Lyubo
  
Back to top
 
IP Logged
 
Kannan Thirumal
Senior Member
****
Offline


I Love Mind Fusion Diagram
:-)

Posts: 270
Location: Bangalore, India
Joined: Jan 18th, 2019
Re: Semi Transparent Node !
Reply #2 - Jul 2nd, 2019 at 8:00am
Print Post  
It works ! Thank you Lyubo !

Previously I tried setBrush with rgba but missed setShadowColor to Transparent.

If setShadowColor is NOT set to Transparent, then the node itself is NOT transparent.
« Last Edit: Jul 2nd, 2019 at 9:12am by Kannan Thirumal »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint