Skip to content
This repository has been archived by the owner on Nov 13, 2022. It is now read-only.
Tor (torbuntu) edited this page Apr 17, 2021 · 3 revisions

Leikr System API

Version 0.0.15

The Leikr System object contains an advanced system API as well as methods for maths operations.

Maths Utils
float cos(radians)
float cosDeg(degrees)
float sin(radians)
float sinDeg(degrees)
float ceil(value)
float floor(value)
int randInt(range)
int randInt(start, end)
float randFloat(range)
float randFloat(start, end)
int round(value)

Experimental Utilities

These items are subject to change or complete removal.

Experimental
boolean collides(x1, y1, w1, h1, x2, y2, w2, h2
boolean collides(a[], b[])
boolean point(x, y, x2, y2, w, h)
Object compile(path)
void compile(path, output)
Object eval(code)
Object parse(code)
void loadLib(path)
Object newInstance(name)

Contents

Home

API

under construction for version 1.10.1

Clone this wiki locally