gfb

package module
v0.0.0-...-2a24c3f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2024 License: LGPL-2.1 Imports: 11 Imported by: 0

Documentation

Overview

Copyright (C) Egor This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. GNU Lesser General Public Licence is available at http://www.gnu.org/copyleft/lesser.html

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DrawCircle

func DrawCircle(fb []uint8, y_center int, x_center int, radius int, r uint8, g uint8, b uint8)

func DrawLine

func DrawLine(fb []uint8, xstart int, xend int, ystart int, yend int, r uint8, g uint8, b uint8)

func DrawRectangle

func DrawRectangle(fb []uint8, xstart int, xend int, ystart int, yend int, r uint8, g uint8, b uint8)

func DrawTestRainbow

func DrawTestRainbow(fb []uint8, xstart int, xend int, ystart int, yend int)

func GetResolution

func GetResolution(fbName string) (resX, resY int)

func InitFb

func InitFb() []uint8

func SetPoint

func SetPoint(fb []uint8, x int, y int, r uint8, g uint8, b uint8) []uint8

func SetPointHue

func SetPointHue(fb []uint8, x int, y int, hue float64, saturation float64, value float64) []uint8

func ShowPNG

func ShowPNG(fb []uint8, filepath string, dx int, dy int)

func UpdateScreen

func UpdateScreen(fb []uint8)

func WriteWebp

func WriteWebp(data []uint8, width, height int, filepath string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL