© Efflare Systems
website : e-mail

index | examples | api | language
General
include( absolutepath:string )  
» executes flarescript file at absolutepath, the official extension is .fs

fileexists( absolutepath:string ):boolean  
» returns true if the file at absolutepath exists, else returns false

uid( hashsource:boolean=true, hashattributes:boolean=true ):string  
» returns unique id for this ImageFlare call, hashing source and attributes into the id as specified

Math
md5( content:string ):string  
» return md5 hash of content

hex( value:string ):number  
» return numeric representation of 6 character hexstring value, eg. 'FF00FF'

random(range:number)  
» return random whole number between 0 and range

floor( n:number )  
» return n rounded down

round( n:number )  
» return n rounded to closest whole number

ceil( n:number )  
» return n rounded up

abs( n:number )  
» return absolute valye of n

mod( n:number, d:number )  
» return the remainder of n / d

max( a:number, b:number )  
» return the larger of two numbers

min( a:number, b:number )  
» return the smaller of two numbers

pow( n:number, p:number )  
» return n to the p power, you can also use the ^ operator

sqrt( n:number )  
» return squareroot of n

Trigonometry
sin( n:number )  
» return sin of n

cos( n:number )  
» return cos of n

tan( n:number )  
» return tan of n

asin( n:number )  
» return arcsin of n

acos( n:number )  
» return arccos of n

atan( n:number )  
» return arctan of n