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);
    }
Exemple #2
0
void DrawHello()
    {
    txSetColor (TX_LIGHTGREEN);
    txSelectFont ("Times New Roman", 60);
    txSetTextAlign (TA_CENTER);
    txTextOut (400, 480, "Hello, world!");
    }
Exemple #3
0
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;

    }
Exemple #4
0
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 text (const char * text)
    {
    txSelectFont ("Comic Sans MS", 150, 50, 50, false, false, false, 0);
    txTextOut (100, 300, text);
    }
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);
    }
void text (const char * text, int x, int y)
    {
    txSelectFont ("Comic Sans MS", 300, 100, 50, false, false, false, 0);
    txTextOut (x, y, text);
    }