HP Prime Graphing Wireless Calculator Instrukcja Użytkownika Strona 634

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 633
EXPORT
DRAWPATTERN()
BEGIN
LOCAL
xincr,yincr,color;
STARTAPP("Function");
RECT();
xincr := (Xmax - Xmin)/318;
yincr := (Ymax - Ymin)/218;
FOR X FROM Xmin TO Xmax STEP xincr DO
FOR Y FROM Ymin TO Ymax STEP yincr DO
color := RGB(X^3 MOD 255,Y^3 MOD 255, TAN(0.1*(X^3+Y^3)) MOD 255);
PIXON(X,Y,color);
END;
END;
WAIT;
END;
FOR DOWN
Syntax: FOR var FROM start DOWNTO nish DO commands END;
Sets variable var to start, and for as long as this variable is more than or equal to nish, executes the
sequence of commands, and then subtracts 1 (decrement) from var.
FOR STEP DOWN
Syntax: FOR var FROM start DOWNTO nish [STEP increment] DO commands END;
586 Chapter 28 Programming in HP PPL
Przeglądanie stron 633
1 2 ... 629 630 631 632 633 634 635 636 637 638 639 ... 700 701

Komentarze do niniejszej Instrukcji

Brak uwag