Origin Scripting Language - Mistium/Origin-OS GitHub Wiki

OSL, the most powerful turbowarp scripting language

Origin Scripting Language (OSL) is the primary system scripting language for originOS, a user interface platform or operating system. It is designed to facilitate various tasks, such as data management, GUI (Graphical User Interface) creation, and application development within the originOS environment.

if you have questions on how to program specific things, join my discord server below and dm me your questions, i don't mind

VS Code OSL Extension

Other Docs

origin.mistium

Incomplete, but much improved docs https://osl.mistium.com

Documentation:

Important

Program Flow (if statements, loops, those things)

Operators and expressions (+-/*) and or nor xor

Subroutines (custom commands and events)

Rendering

UI Elements (Actually render stuff to your application!)

Pen (draw lines and transparency)

Positioning UI (Move where you render stuff)

Modifiers (stuff that lets you modify a single command in one line: c#fff chx#30 hover_c#444)

Variables

About

All Variables

Local scoped vars

Methods

Methods take parameters and an input like: "hello world".method("wow")
All Methods

Custom methods

Functions

Functions take parameters but no inputs like: func("hello world","wow")
Functions

Environment

The Window System

Mouse Cursor

Window Data

Notifications

Transmit

Right Click

Rotur

Currency

Items

Data

Arrays

Using Json

Data Types

Time and Timestamps

Edit a data:url (data urls can be edited using these commands)

Enums

Unicode

Canvas

Vectors and Mini 3d(do some cool stuff with vectors)

Full 3d

Inputs

Text Input

Colour Picker

Simulating inputs

Camera

Files

File Handling

Reading and writing save data

Permissions and Configuration

External

Iframes

Http

Network

Websockets

Video Player

Sound Handling

OSL Gpt

Advanced

Fatal Error Codes

External Languages

Raw Kernel Access

⚠️ **GitHub.com Fallback** ⚠️