Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 4:15 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: USER INPUT FOR POLYGON FILL USING RGB VALUES
PostPosted: February 28th, 2012, 3:17 pm 
Offline

Joined: March 27th, 2008, 3:19 pm
Posts: 9
I HAVE A SCREEN WITH A POLYGON. I CAN CHANGE THE FILL COLOUR USING A PRE COLOURED BUTTON.
I NEED A BUTTON WITH A SCRIPT THAT WILL ALLOW ME TO CHANGE THE POLYGON COLOUR TO A SPECIFIC RGB COLOUR.
ANY HELP IS WELCOME.
USING V7 AND V7 OF OPUS PRO


For this message jpguillon has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: USER INPUT FOR POLYGON FILL USING RGB VALUES
PostPosted: February 28th, 2012, 6:38 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Capitals is shouting.

If you're using the change polygon fill action, click the help button on the dialogue - it explains how to use the variable. Best option is three input boxes, then script on button that uses RGB function to covert the above three input box variables to the RGB value and assign this to the variable used in the action.

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: USER INPUT FOR POLYGON FILL USING RGB VALUES
PostPosted: February 29th, 2012, 5:14 pm 
Offline

Joined: March 27th, 2008, 3:19 pm
Posts: 9
Thanks for your help,
i understood the concept but failed miserably to get my polygon to change to the required colour (kept getting errors)
i managed to create 3 text input boxes, one for red called RED, one for green called GREEN, one for blue called BLUE.
i can enter the desired value in each box, i have created a button called RGB
i choose variable for change polygon fill, variable named RGB_INPUT
i added a script to give to RGB_INPUT the values for my RED, GREEN and BLUE boxes but have been getting repeatedly some syntax errors.
i attach my .imp file created in opus 7.
i use to background to test dyslexic children vision, they respond sometimes to a very narrow colour range and can read better under those conditions.
later i will have to design the background colour to change according to HSL values either by data entry or better by using 3 bars that will allow me to change one value at a time. this is to mimic an instrument costing few thousands dollars.
jean-pierre


You do not have the required permissions to view the files attached to this post.


For this message jpguillon has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: USER INPUT FOR POLYGON FILL USING RGB VALUES
PostPosted: February 29th, 2012, 5:40 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
You have to RGB the values before assigning to the variable.

Mack


You do not have the required permissions to view the files attached to this post.

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: USER INPUT FOR POLYGON FILL USING RGB VALUES
PostPosted: February 29th, 2012, 6:04 pm 
Offline

Joined: March 27th, 2008, 3:19 pm
Posts: 9
Dear Mack,
Thank you so, so much.
it works a treat .
this will help me enormously.
best regards.

jean-Pierre


For this message jpguillon has been thanked by : mackavi


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 27 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