drawing

package
v0.0.0-...-52e25ac Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2022 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DrawArray

func DrawArray(anim *gif.GIF, globalArr []int, sortedGlobalArr []int, lIdx, rIdx int, points ...int)

func HLine

func HLine(x1, y, x2 int, col color.Color, img *image.Paletted)

HLine draws a horizontal line

func Rect

func Rect(x1, y1, x2, y2 int, col color.Color, img *image.Paletted, filled bool)

Rect draws a rectangle utilizing HLine() and VLine()

func SaveToOutput

func SaveToOutput(anim *gif.GIF)

func VLine

func VLine(x, y1, y2 int, col color.Color, img *image.Paletted)

VLine draws a vertical line

Types

This section is empty.

Jump to

Keyboard shortcuts

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