program GrafRed;
uses GraphABC, Events;
var w: integer;
col: color;
procedure kPress(ch: char);
begin
if ch = 'r' then col := clRed;
if ch = 'g' then col := clGreen;
if ch = 'b' then col := clBlue;
if ch = 'w' then col := clWhite;
end;
procedure kDown(key: integer);
begin
if key = VK_Up then w := w + 1;
if key = VK_Down then w := w - 1;
if key = VK_Delete then ClearWindow(clWhite);
end;
procedure
mDown(x, y, mb: integer);
begin
MoveTo(x, y);
end;
procedure
mMove(x, y, mb: integer);
begin
setPenColor(col); SetPenWidth(w);
SetWindowCaption(IntToStr(x) + ', ' + IntToStr(y));
if mb = 1 then LineTo(x, y); { рисование линии }
end;
begin
{ основная программа: вызов обработчиков событий}
Col:=ClRed;
OnKeyPress := kPress;
OnKeyDown := kDown;
OnMouseDown := mDown;
OnMouseMove := mMove
end.
uses GraphABC, Events;
var w: integer;
col: color;
procedure kPress(ch: char);
begin
if ch = 'r' then col := clRed;
if ch = 'g' then col := clGreen;
if ch = 'b' then col := clBlue;
if ch = 'w' then col := clWhite;
end;
procedure kDown(key: integer);
begin
if key = VK_Up then w := w + 1;
if key = VK_Down then w := w - 1;
if key = VK_Delete then ClearWindow(clWhite);
end;
procedure
mDown(x, y, mb: integer);
begin
MoveTo(x, y);
end;
procedure
mMove(x, y, mb: integer);
begin
setPenColor(col); SetPenWidth(w);
SetWindowCaption(IntToStr(x) + ', ' + IntToStr(y));
if mb = 1 then LineTo(x, y); { рисование линии }
end;
begin
{ основная программа: вызов обработчиков событий}
Col:=ClRed;
OnKeyPress := kPress;
OnKeyDown := kDown;
OnMouseDown := mDown;
OnMouseMove := mMove
end.
program Game;
uses GraphABC, Events;
var x, y, a, k, n: integer;
procedure mDown(xm, ym, mb: integer);
begin
if (mb = 1) and (xm > x) and (xm
< x + a) and (ym > y) and (ym < y + a) then
k := k + 1; {счетчик попаданий}
end;
begin
SetWindowSize(600, 500); SetBrushColor(clGreen);
a := 40; k := 0; n := 0; x := 100 + random(200); y := 10;
repeat
ClearWindow;
n := n + 1; x := x + random(40) - 20; y := y + random(20); rectangle(x, y, x + a, y + a);
OnMouseDown := mDown; Sleep(100);
until (y > WindowHeight);
SetFontColor(clYellow); SetFontSize(50);
TextOut(180, 180, ' ' + intToStr(k) + ':' + intToStr(n) + ' ');
end.
uses GraphABC, Events;
var x, y, a, k, n: integer;
procedure mDown(xm, ym, mb: integer);
begin
if (mb = 1) and (xm > x) and (xm
< x + a) and (ym > y) and (ym < y + a) then
k := k + 1; {счетчик попаданий}
end;
begin
SetWindowSize(600, 500); SetBrushColor(clGreen);
a := 40; k := 0; n := 0; x := 100 + random(200); y := 10;
repeat
ClearWindow;
n := n + 1; x := x + random(40) - 20; y := y + random(20); rectangle(x, y, x + a, y + a);
OnMouseDown := mDown; Sleep(100);
until (y > WindowHeight);
SetFontColor(clYellow); SetFontSize(50);
TextOut(180, 180, ' ' + intToStr(k) + ':' + intToStr(n) + ' ');
end.
Айлана ва доира чизиш.pdf
561 KB
Pascal ABC NET
Юмалоқлаштирилган_тўғри_тўртбурчак.pdf
386.8 KB
Pascal ABC NET
Video_2020-01-05_103510.wmv
564.7 KB
Java Scriptda soat ysash.
JS - Soat.html
3 KB
Soat dasturi bilan tanishing va yarating.
kvadrat tenglama.html
534 B
JS- kvadrat tenglama HTML da.
JS-formalar yaratish va grafika.htm
7.9 KB
Java Scriptda forma yaratish va Fizika faniga bog'lash