Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/luthda/canvas-painter
A .NET console application for creating and manipulating ASCII art canvases.
https://github.com/luthda/canvas-painter
Last synced: 24 days ago
JSON representation
A .NET console application for creating and manipulating ASCII art canvases.
- Host: GitHub
- URL: https://github.com/luthda/canvas-painter
- Owner: luthda
- Created: 2021-11-12T16:41:55.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-06-04T08:44:31.000Z (9 months ago)
- Last Synced: 2024-11-21T12:53:01.472Z (3 months ago)
- Language: C#
- Homepage:
- Size: 54.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Canvas Painter
### Setup
* Download .NET 5 or latest.
* Navigate to "CanvasPainter" folder and run `dotnet run` or open the project in your favourite IDE.### Special cases
* Executing no or invalid commands like '20 20' will remind you of using a valid command.
* The commands are case-insensitive: `C 20 4` equals to `c 20 4`.
* Lines can be drawn in reverse: `L 1 2 6 2` will draw exactly the same line as `L 6 2 1 2`.
* The canvas size is limited from 1 to 50 for width and height.### Commands
* `C w h` => Should create a new canvas of width w and height h.
* `L x1 y1 x2 y2` => Should create a new line from (x1,y1) to (x2,y2). Currently only horizontal or vertical lines are supported.
* `R x1 y1 x2 y2` => Should create a new rectangle, whose upper left corner is (x1,y1) and lower right corner is (x2,y2).
* `B x y c` => Should fill the entire area connected to (x,y) with "colour" c.
* `Q` => Should quit the program.