Thread: Using colors

  1. #1
    Unregistered
    Guest

    Using colors

    in Borland 5.0 it says there are colors that blink, but when i use them they only change the background and the text color but they do not blink.

    Is that what they meen about blink colors or is there something i need to do to make them blink.

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    I think they meant that the functions are to be used in a loop to actually blink.

    -Prelude
    My best code is written with the delete key.

  3. #3
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Actually, I believe they pretty much just use ANSI-type escaped colors. As such, there is a bit you can set to make the color blink. It's been a great while since I've looked at it, but I think that's what it does.

    Quzah.
    Hope is the first step on the road to disappointment.

  4. #4
    Unregistered
    Guest

    How would you put it in a loop to blink

    I know that i can put color in a loop to make it change colors
    and it looks like it is blinking but that is realy stupid.

    ex: code
    -----------------------------------------------------------------------------
    #include <conio.h>
    #include <stdio.h>
    #include <windows.h>

    void main()
    {
    int a,b;

    for(a=0,b=0;a<25;a++,b++)
    {
    textcolor(b);
    gotoxy(25,12);
    cprintf("Hello World");
    Sleep(500);
    }
    getch();
    }

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Why I only get 8 colors out of ncurses?
    By Nazgulled in forum C Programming
    Replies: 3
    Last Post: 05-08-2007, 06:06 PM
  2. Relation between material colors and light colors.
    By indigo0086 in forum Game Programming
    Replies: 3
    Last Post: 04-18-2007, 03:20 PM
  3. colors in forefox and colors in IE
    By MisterSako in forum Tech Board
    Replies: 3
    Last Post: 05-15-2006, 01:59 PM
  4. colors?
    By planet_abhi in forum Game Programming
    Replies: 1
    Last Post: 09-10-2003, 05:37 PM
  5. Text Colors
    By GaPe in forum C Programming
    Replies: 1
    Last Post: 07-11-2002, 06:57 AM