Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic ShapeNode (Read 2368 times)
Silvia88
Full Member
***
Offline


I Love MindFusion!

Posts: 121
Joined: Aug 31st, 2015
ShapeNode
Sep 3rd, 2015 at 9:11am
Print Post  
Hi,
is it possible to color a shape node of yellow? Because I use this code:
Pen pen = new Pen();
pen.setColor(Color.BLUE);
originS.setPen(pen);

but there isn't the color YELLOW.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ShapeNode
Reply #1 - Sep 3rd, 2015 at 9:31am
Print Post  
Hi,

You will have to create it by RGB code:

Code
Select All
import com.mindfusion.drawing.Color;
Color yellowColor = new Color(255,255,0); 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Silvia88
Full Member
***
Offline


I Love MindFusion!

Posts: 121
Joined: Aug 31st, 2015
Re: ShapeNode
Reply #2 - Sep 3rd, 2015 at 9:53am
Print Post  
Thank you very much, it works  Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint