diff options
author | sina <sina@snix.ir> | 2022-10-28 03:00:24 +0330 |
---|---|---|
committer | sina <sina@snix.ir> | 2022-10-28 03:00:24 +0330 |
commit | 872afd97e87f3e23a7b73e75f55bb8641f15463b (patch) | |
tree | 9ab968b2cb91f13181d0ab2e55706f172e4d2cb4 | |
parent | b52c165fce4562767098f11af103e65ce4d77b15 (diff) |
rename repo
-rw-r--r-- | Readme.md | 14 | ||||
-rw-r--r-- | erros.txt | 2 | ||||
-rw-r--r-- | go.mod | 2 | ||||
-rw-r--r-- | main.go | 2 |
4 files changed, 10 insertions, 10 deletions
@@ -7,19 +7,19 @@ in order to compile and run this project you need to install [go compiler](https after that run `go build` in project directory to compile brline binary ``` -# git clone https://git.snix.ir/brline -# cd brline && go build -# ./brline +# git clone https://git.snix.ir/brlines +# cd brlines && go build +# ./brlines ``` ### how to use -use `./brline --help` to print help banner, you need to provide 2 points as start and end of the line +use `./brlines --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 +# ./brlines --help usage of bresenham line simulator: -./brline options... +./brlines options... options: --pt <file> named png file to save bresenham output @@ -32,7 +32,7 @@ options: --yb <uint> y coordinate of ending point example: - ./brline --pt mytest.png --xa 8 --ya 3 --xb 2 --yb 10 + ./brlines --pt mytest.png --xa 8 --ya 3 --xb 2 --yb 10 Copyright (c) 2022 snix.ir, All rights reserved. @@ -1 +1 @@ -./brline --xb 10 --yb 1 --xa 2 --ya 15 +./brlines --xb 10 --yb 1 --xa 2 --ya 15 @@ -1,4 +1,4 @@ -module brline +module brlines go 1.19 @@ -1,7 +1,7 @@ package main import ( - "brline/lines" + "brlines/lines" "flag" "fmt" "log" |