Структура программы. Объявление переменных


Download 0.61 Mb.
bet1/3
Sana23.04.2023
Hajmi0.61 Mb.
#1386006
  1   2   3
Bog'liq
Pascal dasturlash tilining grafik imkoniyatlari

PascalABC dasturlash tilining grafik imkoniyatlari

GraphABC moduli

  • Grafik rejim
  • PassalABC grafik ekranida (standart) gorizontal 640 va vertikal 400 nuqta mavjud.
  • 640 nuqta
  • 400 nuqta
  • Ekranni boshqarish
  • SetWindowWidth(w) - Grafik oynaning kengligini o'rnatadi;
  • SetWindowHeight(h) - Grafik oynaning balandligini o'rnatadi;
  • Grafik oynasini tozalash
  • program clear;
  • uses GraphABC;
  • begin
  • ClearWindow;
  • ClearWindow (clMoneyGreen);
  • end.
  • Grafik sodda shakllar
  • Nuqta
  • chiziq
  • To’rtburchak
  • Aylana
  • Ellips
  • Sektor
  • Yoy
  • Nuqta
  • program tochka;
  • uses GraphABC;
  • begin
  • SetPixel(300,200,clred);
  • end.
  • Chiziq
  • LineTo(x,y) – Qalamni joriy holatidan (x,y) koordinatali nuqtagacha kesma chizadi va qalamning joriy holatini (x,y) nuqtaga o’tkazadi.
  • x,y
  • Program liniay;
  • uses GraphABC;
  • begin LineTo(300,200);
  • end.
  1   2   3




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling