aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSina Ghaderi <32870524+Sina-Ghaderi@users.noreply.github.com>2022-10-28 02:35:15 +0330
committerGitHub <noreply@github.com>2022-10-28 02:35:15 +0330
commit4f0ed144e6ab2ea1d2e346a876e3bd87128f5fab (patch)
tree51ede21840945bc77151d7a0791d4bf1389d25f3
parentec89a3bf5fe9d3d274fc92cb75428a77aa19df80 (diff)
adding readme
-rw-r--r--Readme.md44
1 files changed, 44 insertions, 0 deletions
diff --git a/Readme.md b/Readme.md
new file mode 100644
index 0000000..7ebce9e
--- /dev/null
+++ b/Readme.md
@@ -0,0 +1,44 @@
+# 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 <file> named png file to save bresenham output
+ default path for this file is br_resualt.png
+
+ --xa <uint> x coordinate of starting point
+ --xb <uint> x coordinate of ending point
+
+ --ya <uint> y coordinate of starting point
+ --yb <uint> 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 Ghaderi> 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
+```
+
+

Snix LLC Git Repository Holder Copyright(C) 2022 All Rights Reserved Email To Snix.IR