Old 03-17-2013, 05:38 PM   #1
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 18,028
Default 2 WALTER questions

In the sets of 8 numbers [10 50 20 20 0 1 0 1] can I have operators?
Such as [10 10+40 20 20 0 1 0 1]

And the Themer's Guide shows how to sum numbers into a variable:
set tcp.fx + [3 3 0 0 0 0 0 0] [0 0 20 20 0 0 0 0]
Can I subtract the numbers, with something like:
set tcp.fx - [3 3 0 0 0 0 0 0] [10 10 20 20 0 0 0 0]
or should it be
set tcp.fx - [10 10 20 20 0 0 0 0] [3 3 0 0 0 0 0 0]
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
DarkStar is online now   Reply With Quote
Old 03-17-2013, 10:00 PM   #2
rst
Human being with feelings
 
rst's Avatar
 
Join Date: Sep 2009
Location: Vilnius, Lithuania
Posts: 57
Default

Quote:
Originally Posted by DarkStar View Post
In the sets of 8 numbers [10 50 20 20 0 1 0 1] can I have operators?
Such as [10 10+40 20 20 0 1 0 1]

And the Themer's Guide shows how to sum numbers into a variable:
set tcp.fx + [3 3 0 0 0 0 0 0] [0 0 20 20 0 0 0 0]
Can I subtract the numbers, with something like:
set tcp.fx - [3 3 0 0 0 0 0 0] [10 10 20 20 0 0 0 0]
or should it be
set tcp.fx - [10 10 20 20 0 0 0 0] [3 3 0 0 0 0 0 0]
I think operations inside brackets does not work.
Substraction does not work too. You can change to sum with negative values
like + [-3 -3 0 0 0 0 0 0] [10 10 20 20 0 0 0 0]
When you have sum - then there is no difference in which order you put operands.
rst is offline   Reply With Quote
Old 03-18-2013, 03:16 AM   #3
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 18,028
Default

OK, thank you

The subtraction was going to be for specifying borders, "-3 pixels wide"

For the operations in the sets of 8 numbers, I suppose I could have
set tcp.anchor [10 40 20 20 0 1 0 1]
set tcp.xyz + tcp.anchor [0 10 0 0 0 0 0 0 0 ]
That way, my base definition is the first set and the second set moves it by 10 pixels.
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
DarkStar is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:44 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.