package
1.0.1
Repository: https://github.com/tisnik/go-root.git
Documentation: pkg.go.dev

# README

# Functions

Abs function computer absolute value for given integer input.
Abs computes absolute value for given signed integer.
CreateChessboard function draws chessboard onto the test image.
CreateStringArt functions draws a so-called string art into the test image https://en.wikipedia.org/wiki/String_art.
DrawHorizontalLine function draws horizontal line from [x1, y] to [x2, y] into the given image.
DrawHorizontalLine draws horizontal line from [x1,y] to [x2,y] by specified color.
DrawLine function draws line from [x1, y1] to [x2, y2] into the given image.
DrawLine draws line from [x1,y1] to [x2,y2] by specified color.
DrawVerticalLine function draws vertical line from [x, y1] to [x, y2] into the given image.
DrawVerticalLine draws vertical line from [x,y1] to [x,y2] by specified color.
Step function computes step direction (left/right, up/down) for Bresenham algorithm.
Step computes whether the horizontal/vertical step should be positive or negative.