Thread: 4-bit Paint

  1. #1
    former member Brain Cell's Avatar
    Join Date
    Feb 2004
    Posts
    472

    4-bit Paint

    Check this out , i made a console version of MS Paint . It's not as good ofcourse. In fact , it uses 4-bit colors only , dots look bulky (represented by cells) and its only capable of clearing the screen , drawing and erasing.

    You can download it from here :
    http://www.mashhoor.ws/downloads/mpaint.zip
    (ZIP file contains source code and EXE)

    For more info visit :
    http://www.mashhoor.ws/pf.html


    It's useless but kinda fun to mess with.

    If you wanna learn Win32 console programming , i suggest reading Adrian's tutorial. I made this program once i finished reading it , and it was pretty simple. (thanks Adrian )



    Thanks for your time,
    Mashhoor
    My Tutorials :
    - Bad programming practices in : C
    - C\C++ Tips
    (constrcutive criticism is very welcome)


    - Brain Cell

  2. #2
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,273
    For the 16th colour, you need to specify BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE in SetConsoleTextAttribute. It should give you a light grey.

  3. #3
    former member Brain Cell's Avatar
    Join Date
    Feb 2004
    Posts
    472
    well ... light gray doesn't seem so necessary
    My Tutorials :
    - Bad programming practices in : C
    - C\C++ Tips
    (constrcutive criticism is very welcome)


    - Brain Cell

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 11-10-2005, 10:53 AM
  2. porting application from 32 bit to 64 bit error
    By gandalf_bar in forum Linux Programming
    Replies: 1
    Last Post: 09-14-2005, 09:20 AM
  3. Bit processing in C
    By eliomancini in forum C Programming
    Replies: 8
    Last Post: 06-07-2005, 10:54 AM
  4. Bit Manipulation Questions
    By CPPNewbie in forum C++ Programming
    Replies: 7
    Last Post: 08-12-2003, 02:17 PM
  5. Array of boolean
    By DMaxJ in forum C++ Programming
    Replies: 11
    Last Post: 10-25-2001, 11:45 PM