Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
moshiba authored Apr 3, 2021
1 parent 5a0f664 commit 5019e1d
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,19 @@ Find detailed list of available APIs at [docs](aesc/README.md) and [wikipedia](h
#include <iostream>
#include "aesc.hpp"
using namespace std;
using aesc::color;

int main() {
std::cout << aesc::color::red << " foreground is red" << std::endl;
cout << red << " foreground is red" << endl;

std::cout << aesc::color::bright::red << aesc::color::bright::background::cyan
<< " background bright cyan, foreground bright red" << std::endl;
cout << bright::red << bright::background::cyan
<< " background bright cyan, foreground bright red" << endl;

std::cout << aesc::color256::RGB::foreground(2, 3, 0) << "256 color RGB test sequence"
<< std::endl;
cout << aesc::color256::RGB::foreground(2, 3, 0) << "256 color RGB test sequence"
<< endl;

std::cout << aesc::truecolor::RGB::foreground(130, 250, 0)
<< "24-bit true color RGB test sequence" << aesc::render::reset << std::endl;
cout << aesc::truecolor::RGB::foreground(130, 250, 0)
<< "24-bit true color RGB test sequence" << aesc::render::reset << endl;
}
```

Expand Down

0 comments on commit 5019e1d

Please sign in to comment.