# brline simple bresenham line drawing algorithm demonstration implemented with golang, this was my last week lesson in computer graphics class with Dr. Behzad Zamani ### how to compile in order to compile and run this project you need to install [go compiler](https://go.dev/dl), after that run `go build` in project directory to compile brline binary ``` # git clone https://git.snix.ir/brline # cd brline && go build # ./brline ``` ### how to use use `./brline --help` to print help banner, you need to provide 2 points as start and end of the line each point has x and y coordinate, so for starting point you should use -xa and -ya flags and for ending point -xb and -yb ``` # ./brline --help usage of bresenham line simulator: ./brline options... options: --pt named png file to save bresenham output default path for this file is br_resualt.png --xa x coordinate of starting point --xb x coordinate of ending point --ya y coordinate of starting point --yb y coordinate of ending point example: ./brline --pt mytest.png --xa 8 --ya 3 --xb 2 --yb 10 Copyright (c) 2022 snix.ir, All rights reserved. Developed BY sina@snix.ir This work is licensed under the terms of GNU General Public license. Github: github.com/sina-ghaderi and Source: git.snix.ir ```