Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ssynical/renderer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

runluau renderer engine

a simple 2d graphics renderer written in luau. draw shapes, handle events, make things move.

features

  • window creation with custom sizes
  • drawing primitives (pixels, lines, circles, polygons, rectangles)
  • mouse and keyboard event handling
  • performance optimization with dirty rectangles and batching
  • color blending and gradients
  • clipping system
  • debug mode for performance tracking

installation

  1. install runluau
  2. install the gfx plugin
  3. drop the src/ folder into your project
  4. require the renderer:
local Renderer = require("src/renderer")

quick start

local renderer = Renderer.create(800, 600, "my window")

-- draw a red circle
renderer.draw_circle(400, 300, 50, renderer.Red, true)

-- main loop
while renderer.is_window_open() do
    renderer.handle_events()
    renderer.present()
    task.wait(1/60)  -- cap at ~60fps
end

documentation

performance tips

  • use renderer.present() to display your frame
  • batch operations when possible
  • use dirty rectangles for partial screen updates
  • turn off debug mode in production builds

license

see LICENSE for details.

made with ❤️ last updated: 29.8.2025

About

runluau renderer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages