ARSA Language  2.8
(Encryption, GPU and Web 3.0)
ARSA Language 2.8 API documentation

Introduction

Welcome to the ARSA Language API documentation. Here you'll find any information you'll need to develop applications with the ARSA Language. If you are looking for page_tutorials on how to start, you'll find some on the homepage of the ARSA Framework at http://www.arsa.ai or inside the SDK in the examples directory.

The ARSA Language is power full script to control layer on photoshop to be an easy-to-use, so this documentation is an important part of it. If you have any questions or suggestions, just send a email to the author of the engine,
Assoc.Prof.Dr. Arsa Tangchisomkit
suppo.nosp@m.rt@s.nosp@m.arosw.nosp@m.orld.nosp@m..com

Functions

General: Main Functions.
Layer: Layer Functions.
Cloud: Cloud Functions.
File: File Functions.
Audio/Video: Audio/Video Functions.
Built-In Script: Built-In Script Functions.
Xml-JSon: Xml-JSon Functions.
Array: Dynamic Array Functions.
Map: Map Functions.
String, Encryption and Compression: String, Encryption and Compression Functions.
curl: curl Functions.
Primitives: Drawing Primitives Functions.
DPad: DPad Functions.
Lottie: LottieFiles Animation Functions.
Thread: Thread Functions.

Coding

A simple code, move layer on psd name's "jet"
I think this example shows the usage of the engine quite well:

touch(isleft,move(jet,-500,0))
touch(isright,move(jet,500,0))
touch(isup,move(jet,0,-500))
touch(isdown,move(jet,0,500))

Header Files

Script for use by ARSA really consist of two parts: header files that define types and macros and declare variables and functions; and the actual library or archive that contains the definitions of the variables and functions. Header files are included into a program source file by the #include preprocessor directive. The ARSA language supports two forms of this directive; the first,

#include "header"

is typically used to include a header file header that you write yourself; this would contain definitions and declarations describing the interfaces between the different parts of your particular application. By contrast,

#include <foo.h>

is typically used to include a header file foo.h that contains definitions and declarations for a standard library. This file would normally be installed in a standard place by your system administrator. You should use this second form for the ARSA library header files.

Github Example

A Ton examples can find on Github.

Math

Mathematics operator can be use in function follows:

+
-
/
%
abs
acos
asin
atan
atan2
ceil
cos
cosh
exp
floor
ln
log
log10
pi
pow
sin
sinh
sqrt
tan
tanh

Math Example (Projectile Motion):

struct($jump,velx,vely,degree,speed,gravity)
set($jump.degree,60)
set($jump.speed,22)
int($angle,$jump.degree*3.14/180)
set($jump.velx,cos($angle)*$jump.speed)
set($jump.vely,sin($angle)*$jump.speed)