Complete Help Docs

Laser Show Technology for Lighting Professionals

User Tools

Site Tools


beyond:pangoscript

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
beyond:pangoscript [2020/05/26 16:44]
Bob Varkevisser [GLOBALVAR]
beyond:pangoscript [2020/05/27 16:17]
Bob Varkevisser
Line 1: Line 1:
 +~~DRAFT~~
 +
 ====== PangoScript ====== ====== PangoScript ======
  
Line 117: Line 119:
 A variable can be declared as global. In this case, it visible in ALL scripts of BEYOND.  A variable can be declared as global. In this case, it visible in ALL scripts of BEYOND. 
  
 +  globalvar s 
 +  s="mylabel" 
 +  goto s 
 +  DisplayPopup "It does not work" 
 +  exit 
 +   
 +  mylabel: 
 +  DisplayPopup "It works" 
 +  
 ===== General functions ===== ===== General functions =====
  
-**intstr**(value:number):string transform number to string\\ +^ Function ^ description ^ value ^ 
-value - number or float number\\ +**intstr**(value:number):string transform number to string number or float number | 
-result - string\\ +**floatstr**(value:number):string transform number to string number | 
-\\ +**abs**(value:number):number value by modulus integer or float number | 
-**floatstr**(value:number):string transform number to string\\ +**int**(value:number):integer return integer part of float value a float point number | 
-value - number\\ +**frac**(value:number):float return fractional part of float point value | a float point number | 
-result - string\\ +**round**(value:float):integer return rounded float point value (to integer) a float point number | 
-\\ +**sqr**(value:number):number return a square of argument a float point number or integer | 
-**abs**(value:number):number value by modulus\\ +**sqrt**(value:number):float return a square root of argument a float point number or integer | 
-value - integer or float number\\ +**cos**(value:float):float co-sinus a float point number or integer. angle in radians | 
-result - same type as argument. result is absolute value\\ +**sin**(value: float):float sinus a float point number or integer. angle in radians | 
-\\ +**tan**(value:float):float tangents a float point number or integer. angle in radians | 
-**int**(value:number):integer return integer part of float value\\ +**arcsin**(value:float)float arc sinus a float point number or integer. angle in radians | 
-value - a float point number\\ +**arccos**(value: float):float arc cosinus a float point number or integer. angle in radians | 
-\\ +**arctan**(value: float):float arc tangents a float point number or integer. angle in radians | 
-**frac**(value:number):float return fractional part of float point value\\ +**arctan2**(dx, dy:float):float arc tangents dx, dy - .... | 
-value - float\\ +**min**(a,b:number):number return a minimum of two numeric values a,b  float or integer | 
-\\ +**max**(a,b:number):number return a maximum of two numeric values a,b  float or integer | 
-**round**(value:float):integer return rounded float point value (to integer)\\ +**pi**:float return PI value 3.1415926...| 
-value - a float point number\\ +**invert**(value:number):integer invert value. Boolean operation, but can be used with float point numbers If value more than 0.5 then function return 0, otherwise return 1. |
-\\ +
-**sqr**(value:number):number return a square of argument\\ +
-value - a float point number or integer\\ +
-\\ +
-**sqrt**(value:number):float return a square root of argument\\ +
-value - a float point number or integer\\ +
-\\ +
-**cos**(value:float):float co-sinus\\ +
-value - a float point number or integer. angle in radians\\ +
-\\ +
-**sin**(value: float):float sinus\\ +
-value - a float point number or integer. angle in radians\\ +
-\\ +
-**tan**(value:float):float tangents\\ +
-value - a float point number or integer. angle in radians\\ +
-\\ +
-**arcsin**(value:float)float arc sinus\\ +
-value - a float point number or integer. angle in radians\\ +
-\\ +
-**arccos**(value: float):float arc cosinus\\ +
-value - a float point number or integer. angle in radians\\ +
-\\ +
-**arctan**(value: float):float arc tangents\\ +
-value - a float point number or integer. angle in radians\\ +
-\\ +
-**arctan2**(dx, dy:float):float arc tangents\\ +
-dx, dy - ....\\ +
-\\ +
-**min**(a,b:number):number return a minimum of two numeric values\\ +
-a,b  float or integer\\ +
-\\ +
-**max**(a,b:number):number return a maximum of two numeric values\\ +
-a,b  float or integer\\ +
-\\ +
-**pi**:float return PI value 3.1415926...\\ +
-\\ +
-**invert**(value:number):integer invert value. Boolean operation, but can be used with float point numbersIf value more than 0.5 then function return 0, otherwise return 1. +
  
 ===== Date and Time ===== ===== Date and Time =====
  
-**now:float** date&time, calls now() function of Delphi\\ +^ Function ^ description ^ 
-\\ +**now:float** date&time, calls now() function of Delphi | 
-**tickcount**:integer return number of millisecond from start of PC.\\ +**tickcount**:integer return number of millisecond from start of PC. | 
-\\ +**hms**(hour, minute, second):integer transform hour, minute and second into seconds.| 
-**hms**(hour, minute, second):integer transform hour, minute and second into seconds.\\ +**GetYear**:integer function return current year by PC clock. Result | 
-\\ +**GetMonth**:integer function return current month by PC clock | 
-**GetYear**:integer function return current year by PC clock. Result\\ +**GetDay**:integer function return current day by PC clock. | 
-\\ +**timestr**(now:float):string |now is variable representing time. Function return string with time in short format such as "11:53", without seconds | 
-**GetMonth**:integer function return current month by PC clock\\ +**timestrlong**(now:float):string now is variable representing time. Function return string with hours, minutes, seconds, such as "11:53:10" | 
-\\ +|**datestr**(now:float):string �������� ������ ����, � ��� ��� - now is variable representing date. Function return string short date format such as "21.11.2012" | 
-**GetDay**:integer function return current day by PC clock.\\ +|**datestrlong**(now:float):string ������� ������ ����, ���� - now  is variable representing date. Function return string long date format such as "21 ������ 2012 �." | 
-\\ +**dayofweek**(now:float):string short version day of the week | 
-**timestr**(now:float) :string\\ +**dayofweeklong**(now:float):string long version day of the week |
-now is variable representing time. Function return string with time in short format such as "11:53", without seconds\\ +
-\\ +
-**timestrlong**(now:float):string - \\ +
-now is variable representing time. Function return string with hours, minutes, seconds, such as "11:53:10"\\ +
-\\ +
-**datestr**(now:float):string �������� ������ ����, � ��� ��� - \\ +
-now is variable representing date. Function return string short date format such as "21.11.2012"\\ +
-\\ +
-**datestrlong**(now:float):string ������� ������ ����, ���� - \\ +
-now is variable representing date. Function return string long date format such as "21 ������ 2012 �."\\ +
-\\ +
-**dayofweek**(now:float):string short version day of the week\\ +
-\\ +
-**dayofweeklong**(now:float):string long version day of the week\\+
  
 ===== String functions ===== ===== String functions =====
  
-**uppercase**(string):string  transform input string to upper case. Result is a string.\\ +^ Function ^ description ^ 
-\\ +**uppercase**(string):string  transform input string to upper case. Result is a string. | 
-**lowercase**(string:string):string transform input string to lower case. Result is a string.\\ +**lowercase**(string:string):string transform input string to lower case. Result is a string. | 
-\\ +**crlf**:string return a string, line separator (13,10) 
-**crlf**:string return a string, line separator (13,10)\\+
 ===== Clock And Metronome ===== ===== Clock And Metronome =====
  
-**b2s**(beats) transform beats to seconds\\ +^ Function ^ description ^ 
-\\ +**b2s**(beats) transform beats to seconds | 
-**b2ms**(beats) transform beats to milliseconds\\ +**b2ms**(beats) transform beats to milliseconds | 
-\\ +**s2b**(seconds) transform seconds to beats | 
-**s2b**(seconds) transform seconds to beats\\ +**b2s**(seconds) transform beats to seconds |
-\\ +
-**b2s**(seconds) transform beats to seconds\\+
  
 +===== More to come =====