Skip to content

Higher‐Resolution

CrocBlanc edited this page Sep 1, 2025 · 1 revision

High-res

How to load

see import

local screen = dofile("high-res.lua")
OR
local screen = import("https://raw.githubusercontent.com/CrocBlancYT/computer-craft-libraries/refs/heads/main/src/high-res.lua")

Functions

local buffer = screen.new(term, [pixelColor, backgroundColor])

Buffer

see demo for examples

Functions

refresh

buffer.refresh() -- applies the buffer to the term

clear

buffer.clear() -- empties the buffer

Structure

buffer

{
      [x][y] = true | false | nil
      clear: function
      refresh: function
}

Clone this wiki locally