From 99107be8a997eb453b989e1b31123708685696dc Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Mon, 6 May 2019 18:18:32 +0200 Subject: Changed color handling to take ANSI 8bit colors added ansi_color_fg(R,G,B) and ..._bg(...) to generate ANSI-colors from RGB values replaced two spaces with tabs in every file to fix terrible tabbing (thanks atom...) --- example/3d.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'example/3d.cpp') diff --git a/example/3d.cpp b/example/3d.cpp index e488da1..1b7e9e1 100644 --- a/example/3d.cpp +++ b/example/3d.cpp @@ -14,27 +14,27 @@ class testobject : cObject { public: - testobject() - { - setSize(10,5); - cc = 0; + testobject() + { + setSize(10,5); + cc = 0; - drawRectangle('#', NULL, {0,0}, {9,4}, _COL_GREEN, _COL_DEFAULT); - } + drawRectangle('#', NULL, {0,0}, {9,4}, _COL_GREEN, _COL_DEFAULT); + } - ~testobject() { destruct(); } + ~testobject() { destruct(); } - virtual void onClick(sPos _pos, unsigned int _button) - { - cc++; - drawText(std::to_string(cc), {2,2}, _COL_RED); + virtual void onClick(sPos _pos, unsigned int _button) + { + cc++; + drawText(std::to_string(cc), {2,2}, _COL_RED); - drawPoint('Q', _pos, _COL_YELLOW); - } + drawPoint('Q', _pos, _COL_YELLOW); + } virtual void onChar(unsigned char _c) { drawPoint(_c, {1,1}, _COL_BLUE); } private: - int cc; + int cc; }; int main(int argc, char* argv[]) -- cgit v1.2.3