Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 23rd, 2024, 3:44 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: SetFillColour() ??
PostPosted: November 23rd, 2006, 12:58 pm 
Offline

Joined: January 10th, 2005, 11:08 am
Posts: 63
Location: Birmingham, United Kingdom
Opus: All between ver Pro XE 4.5 and Ver 9.62
OS: Windows XP Pro SP3
System: Intel Core2 Duo 2.67Ghz, Matrox Millennium G550 dual head graphics card
I am having a problem with SetFillColour().
I am trying to get a polygon to accept a Linear effect angled to 90 degrees with a graduated colour and thus I have the script:
var progress=new Object()
progress.style="Linear"
progress.angle=90
progress.colour=new Array()
progress.colour[0]=RGB(20,20,20)
progress.colour[1]=RGB(200,200,200)
BAR.SetLineColour(progress)

However all I get in the polygon called BAR is a black fill. Can anyone tell me where I am going wrong :?:

_________________
Andy Thompson
Opus Pro XE 4.5, Pro 5.5, Ver 6, Ver 7, Ver 8.6, Ver 9.62
Windows XP Pro on an Intel Core2 Duo 2.67Ghz with a Matrox Millennium G550 LP PCIe dual-head card.


Top
 Profile Visit website  
 
 Post subject:
PostPosted: November 23rd, 2006, 6:46 pm 
Offline

Joined: October 26th, 2004, 10:23 am
Posts: 666
Location: Digital Workshop
SetFillColour() and SetLineColour() only accept a single colour (and an optional transparency).

SetBackground() can take the more advanced parameters but that applies to graphical objects (frames, images, the container vector shape), not individual polygons.

_________________
ddww Opus Developer


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 42 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group