obs-js
Read me
NOTE: DOCUMENTION IN PROGRESS

Create beautiful 2D content for the web with a fast lightweight 2D library that works across a lot of devices using HTML5 canvas for the most compatibility.
What to Use Orbs js for and When to Use It
Orbs js is a rendering library that will allow you to create rich, interactive graphics, cross platform applications, and games without having to write a lot of overhead for your project and get extra features like scenes, apis and more.
Orbs js is written to use the HTML5 Canvas for rendering. Out of the box cross-platform compatibility, scenes, camera movement, sprites, shapes, scripting and polished api allows you to create polished and refined experiences relatively quickly with almost no overhead set up.
Docs
Documentation is still progress
Instalation/ Setup
It's easy to get started with Orbs js!
Orbs js can be installed simply using a content delivery network (CDN) URL to embed Orbs js directly on your HTML page or using the npm module
Inatalation Options
Type
Description
Instaling
Usage
JsDeliver
CDN
Simplest, for beginers, components avalible (Browser)
UNPKG
CDN
Complex, use if you know what you want to do, componets avalible (Browser)
Download
downloaded
Easy, just download and use in your project (Browser, Node js, Deno)
Bundle.run
CDN
Simple, for people who know how to use js import staments; has components and core in one import (Browser)
Skypack
CDN
Kind of complex, components not working, for people who like complex cdns (Browser)
Npm module
module
For usage in node js projects (node js projects, browser[kind of])
CDN Install (via jsdeliver)
Simplest Install
CDN Install (via unpkg)
Download
Simply download any of the files bellow and include in your project
Add any of these to the head of the html depending on what you need
Usage (for all of the above)
To import in JavaScript (and deno)
use the import variables like this:
NOTE: do not import the files straight into your js file, you have to include it in the head of your html.
CDN Install (via Bundle.run)
This is one of the efficient yet easy way
easily import in your js with this:
CDN Install (via skypack)
Use import like this in your js
And Import the the functions and values like this
full example for skypack:
Npm Module available at npm
install using the bellow in the command line to add to your project.
Usage in your js file
For Deno
if you are looking for deno you can use the skypack url: https://cdn.skypack.dev/orbs-js?dts. for skypack usage go here
Or the deno.land/x package:
Demos
Features
shapes (meshes)
texture
custom shapes (custom meshes using the HTML5 Canvas API)
Line rendering
Text
Object scripting
Scene system
primitive camera system
variable fps with Delta Time
mouse events for left button
pre made components available
package downloader (downloads the library and any extra things needed)
Planed Features:
collision detection
physics
keyboard and mouse events
global scripting
html(& markdown) rendering
more customisable shapes
better camera
better debugging
enhance for big projects
Basic Usage/ example
License
This content is released under the MIT License.
Last updated
Was this helpful?