Skip to content

nasOS-official/gfb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Frame Buffer

MPL 2.0 License

Go Frame Buffer is a library for working with framebuffer in tty. For example, you can output vector images in tty using this library.

Demo

package main

import "github.com/nasOS-official/gfb"

func main(){
    var fb gfb.Gfb
	fb.InitFb(0)
	fb.ClearScreen()
	fb.DrawRectangle(40, 200, 50, 100, 255, 0, 0)
	fb.DrawCircle(300, 300, 100, 0, 255, 0)
	fb.DrawLine(100, 400, 200, 500, 0, 0, 255)
	fb.UpdateScreen()
}

Documentation

Documentation on pkg.go.dev

License

This project is licensed under MPL 2.0

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages