Skip to content

Nightre/Rapid.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Warning

๐Ÿšง Major Refactoring in Progress ๐Ÿšง

This project is currently undergoing a significant rewrite to improve its core architecture and introduce new features. As a result, the current documentation and examples are outdated and may not work with the main branch.

We are working hard to update the documentation soon. Thank you for your patience!

Rapid.js

A highly efficient (stress-test) and lightweight WebGL-based 2D rendering engine focused on rendering capabilities.

Features

  • Fast Rendering โšก
  • TileMap - YSort, isometric ๐Ÿ—บ๏ธ
  • Light Shadow ๐Ÿ’ก
  • Particle ๐ŸŽ†
  • Camera ๐ŸŽฅ
  • Graphics Drawing โœ๏ธ
  • Text Rendering ๐Ÿ“
  • Line Drawing - line texture ใ€ฐ๏ธ
  • Custom Shaders ๐ŸŽจ
  • Mask ๐ŸŽญ
  • Frame Buffer Object ๐Ÿ–ผ๏ธ

Performance Testing

32x32 Texture Sprites 60FPS

  • Intelยฎ Irisยฎ Xe Graphics : 42K sprites

Install

npm i rapid-render

Or via CDN:

<script src="https://unpkg.com/rapid-render/dist/rapid.umd.cjs"></script>

Quick Start

import { Rapid, Color, Vec2 } from "rapid-render"

// Initialize
const rapid = new Rapid({
    canvas: document.getElementById("gameCanvas"),
    backgroundColor: Color.fromHex("E6F0FF")
})

// Render example
rapid.render(() => {
    rapid.renderRect({ 
        offset: new Vec2(100, 100), 
        width: 50, 
        height: 50, 
        color: Color.Red 
    })
})

For more examples and detailed documentation, visit our website.

Roadmap

  • 9-slice ๐Ÿšง (In Progress)
  • Nodejs Support

Contributing

Issues and PRs are welcome!

Screen shot

1 2 3 4 4