예제 #1
0
파일: mult code.cpp 프로젝트: Fokz210/Mult
int main()
    {
    txCreateWindow (1200, 700);

    txSelectFont ("Comic Sans MS", -20, -30);
    txPlaySound ("msc.wav");
    Titry();
    txClear();
    txTextOut (500, 350, "Жил был один козёл...");
    txSleep (1000);
    txClear ();
    txTextOut (500, 350, "И его все любили");
    GoatLove ();
    txPlaySound ("msc.wav");
    txSleep (2000);
    txClear ();
    txTextOut (500, 350, "Но потом появился");
    txSleep (1000);
    txClear ();
    txPlaySound ("Tam.wav");
    txTextOut (575, 350, "ОН");
    FxDrawTv (TX_LIGHTGRAY, TX_BLACK, 500, 500);
    txSleep(5000);
    txPlaySound ("msc.wav");
    TitryEnd();



    return 0;

    }
예제 #2
0
void Manometr (int davlenie, int x, int y, COLORREF Color, const char * tekst)
    {
    txSetFillColor (TX_GREEN);
    txSetColor (TX_GREEN, 7);
    txRectangle (x + 25, y + 140, x - 25, y + 90);
    txSetFillColor (Color);
    txCircle (x, y, 95);

    char text [10] = "";
    sprintf (text, "%d", davlenie);
    txSelectFont ("Arial", 60, 17, false, false, true, false, 0);
    txTextOut (x - 40, y - 15, text);
    txSelectFont ("Arial", 30, 8, false, false, true, false, 0);
    txTextOut (x - 85, y - 40, tekst);
    }
예제 #3
0
파일: Example03.cpp 프로젝트: ded32/txlib
void DrawHello()
    {
    txSetColor (TX_LIGHTGREEN);
    txSelectFont ("Times New Roman", 60);
    txSetTextAlign (TA_CENTER);
    txTextOut (400, 480, "Hello, world!");
    }
예제 #4
0
파일: Example03.cpp 프로젝트: ded32/txlib
void DrawFlag()
    {
    txSetFillColor (TX_TRANSPARENT);
    txLine (400, 75, 400, 150);
    txRectangle (400, 75, 450, 115);
    txSelectFont ("Times New Roman", 20);
    txTextOut (425, 85, "C++");
    }
void Score (double Score, int x, int y)
    {
    txSetColor (RGB(255, 215, 0));
    txSetFillColor (TX_BLACK);
    txRectangle (x - 100, y - 20, x + 100, y + 20);
    char text [100] = "You have";
    sprintf (text, "You have %lg", Score);
    txTextOut (x - 75, y- 10, text);
    }
예제 #6
0
파일: mult code.cpp 프로젝트: Fokz210/Mult
void TitryEnd()
    {
    int t = 0;
    while (t <= 100)
        {
        t++;

        txTextOut (-100+t*13, 200, "Конец первой части");

        txSleep (50);

        txSetFillColor (TX_WHITE);
        txClear ();

        }
    }
예제 #7
0
파일: Proga.cpp 프로젝트: Fokz210/Proga
void TextOut()
    {

    int t = 0;

    while (t <= 100)
        {
        t++;

        txSetColor (TX_BLACK);
        txTextOut (470, 10+t*6, "Привет!");

        txSleep(70);
        txClear();

        }

    }
예제 #8
0
파일: mult code.cpp 프로젝트: Fokz210/Mult
void GoatLove()
    {
    int t = 0;

    txPlaySound ("kzl.wav");

    while (t <= 50)
        {
        t++;

        txTextOut (500, 350, "И его все любили");
        FxDrawGoat (500, 150, t%2*20, 0, 1, 0, 0, 0);
        FxDrawMan (800, 150, t%2*20, t%2*20, 0);

        txSleep (100);

        txSetFillColor (TX_WHITE);
        txClear();
        }
    }
예제 #9
0
파일: mult code.cpp 프로젝트: Fokz210/Mult
void Titry()
    {
     int t = 0;

     while (t <= 100)
        {
        t++;

        FxDrawGoat (500, 350, 0, 0, 1, 0, 0, 5);

        txTextOut (-600+t*18, 200, "История одного козла (Автор: Иван Черемисенов)");
        txSleep (70);


        txSetFillColor (TX_WHITE);
        txClear ();

        }


    }
예제 #10
0
void Score (double Score, int x, int y)
    {
    char tekst [100] = "You have";
    sprintf (tekst, "You have %lg", Score);
    txTextOut (x - 75, y- 10, tekst);
    }
예제 #11
0
void text (const char * text)
    {
    txSelectFont ("Comic Sans MS", 150, 50, 50, false, false, false, 0);
    txTextOut (100, 300, text);
    }
예제 #12
0
void text (const char * text, double x, double y, COLORREF Color, int vis, int shir)
    {
    txSetColor (Color);
    txSelectFont ("Comic Sans MS", vis, shir, 0, false, false, false, 0);
    txTextOut (x, y, text);
    }
void text (const char * text, int x, int y, COLORREF color)
    {
    txSetColor (color);
    txSelectFont ("Comic Sans MS", 300, 100, 50, false, false, false, 0);
    txTextOut (x, y, text);
    }
예제 #14
0
void text (const char * text, int x, int y)
    {
    txSelectFont ("Comic Sans MS", 300, 100, 50, false, false, false, 0);
    txTextOut (x, y, text);
    }