Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
ASCII art painting surface class.
With it, you can draw dots, lines and circles on a surface.
The example below shows a smiley created using it.
* Download Canvas source code (zip)
MMMMMMMMMMMMMMMMMMMh/:osM-o:/hMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMm:+mMMMMMMMm+:mMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMh/mMMMMMMMMMMMm/hMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMh:NMMMMMMMMMMMMMN:hMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMm/NMMmdNMMMMMNdmMMN/mMMMMMMMMMMMMMM
MMMMMMMMMMMMMM:mMM+:o:oMMMo:o:+MMm:MMMMMMMMMMMMMM
MMMMMMMMMMMMMh+MM/yMMMs+M+sMMMy/MM+hMMMMMMMMMMMMM
MMMMMMMMMMMMM/mMd+MMMMM/h/MMMMM+dMm/MMMMMMMMMMMMM
MMMMMMMMMMMMN:MMysMM/MMs+sMM/MMsyMM:NMMMMMMMMMMMM
MMMMMMMMMMMMdoMMd+MMNMM+s+MMNMM+dMModMMMMMMMMMMMM
MMMMMMMMMMMMysMMN/mMMMm/N/mMMMm/NMMsyMMMMMMMMMMMM
MMMMMMMMMMMMyyMMMm-oyo-mMm-oyo-mMMMyyMMMMMMMMMMMM
MMMMMMMMMMMMysMMMMMyshMMMMMhsyMMMMMsyMMMMMMMMMMMM
MMMMMMMMMMMMdoMMo+ooooooooooooo/+MModMMMMMMMMMMMM
MMMMMMMMMMMMN:MMy`sddddddddddds`sMM:NMMMMMMMMMMMM
MMMMMMMMMMMMM/mMMm/oMMMMMMMMMo/mMMm/MMMMMMMMMMMMM
MMMMMMMMMMMMMh+MMMMy:mMMMMMm:sMMMM+hMMMMMMMMMMMMM
MMMMMMMMMMMMMM:mMMMMd/hMMMy/dMMMMm:MMMMMMMMMMMMMM
MMMMMMMMMMMMMMm/NMMMMN++m++NMMMMN/mMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMh:NMMMMMhm MMMMMN:hMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMh/mMMMMMMMMMMMm/hMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMm:+mMMMMMMMm+:mMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMh/:osyso:/hMMMMMMMMMMMMMMMMMMM
Feel free to post your feedback about this class at Programmer's Heaven.
Canvas, ASCII art painting surface class
Copyright (C) 2008 Richel Bilderbeek
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.