drawing
This commit is contained in:
parent
02a6d7ae31
commit
b7527106ba
|
@ -15,14 +15,14 @@ auto Draw(std::ostream & out, std::map<Coord, ValueType> image) -> void {
|
|||
for (ValueType x = minX; x <= maxX; x++) {
|
||||
auto it = image.find({x,y});
|
||||
if (image.end() == it) {
|
||||
out << ".";
|
||||
out << "░";
|
||||
} else switch (it->second) {
|
||||
case 0: out << "░"; break;
|
||||
case 0: out << "▒"; break;
|
||||
case 1: out << "▓"; break;
|
||||
case 2: out << "2"; break;
|
||||
case 3: out << "3"; break;
|
||||
case 4: out << "4"; break;
|
||||
default: out << "!"; break;
|
||||
case 2: out << "■"; break;
|
||||
case 3: out << "◆"; break;
|
||||
case 4: out << "●"; break;
|
||||
default: out << "★"; break;
|
||||
}
|
||||
}
|
||||
out << "\n";
|
||||
|
|
Loading…
Reference in New Issue
Block a user