1.1.0 • Published 12 months ago

node-framebuffer v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

Framebuffer

A library for interacting with the Linux framebuffer API.

Usage

After installing, you can use Framebuffer like so:

// import Framebuffer and colors from node-framebuffer
var { Framebuffer, colors } = require('node-framebuffer');

// create a new Framebuffer instance with height, width, and depth (number of bytes per pixel)
var fb = new Framebuffer('/dev/fb0', 1920, 1080, 4);

// plot a blue pixel at (100, 100)
fb.plot(100, 100, colors.blue);

// clear the screen
fb.clear();

// draw a blue 50px radius circle with center at (100, 100)
fb.circle(100, 100, 50, colors.blue);

// draw a 50x50 image buffer with color depth 3 to (100, 100)
fb.buffer(100, 100, 50, 50, 3, imageBuffer);

// draw a blue 50x50 rectangle to (100, 100)
fb.rectangle(100, 100, 50, 50, colors.blue);

// draw a blue line from (50, 50) to (100, 100)
fb.line(50, 50, 100, 100, colors.blue);
1.1.0

12 months ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago