Skip to content

Melzyxx/ascgraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 

Repository files navigation

Ascgraph

Консольная графика на python

Install pip3 install ascgraph


Usage

import ascgraph

# Create map 20x20
map = ascgraph.ascgraph(20, 20, "#")

# Create point x: 3, y: 14
map.point(3, 14, "O") 

# Create rect x1: 5, y1:5, x2: 15, y2:15
map.rect(5, 5, 15, 15, "O")

# Create line x1: 0, y1: 0, x2: 20, y2: 20
map.line(0, 0, 20, 20, "O")

# Print map
print(str(map))

# Clear map
map.clear()

About

Python library for ascii graphics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages