Главная | Случайная
Обратная связь

ТОР 5 статей:

Методические подходы к анализу финансового состояния предприятия

Проблема периодизации русской литературы ХХ века. Краткая характеристика второй половины ХХ века

Ценовые и неценовые факторы

Характеристика шлифовальных кругов и ее маркировка

Служебные части речи. Предлог. Союз. Частицы

КАТЕГОРИИ:






Graphic operators of Qbasic language




Operator Appointment Description
CLS The operator display screen cleaning  
COLOR [basic][,[fon][,[border]] The operator sets the screen color The main - the color of the text (0-31);
SCREEN 0, 1,2,7,8,9,10,11, 12, 13 The operator sets the screen mode Background - color screen (0-7)
CIRCLE [STEP](x,y),radius[,[color][,[start][,[end] [koefficient]]]] Graphic operator draws an ellipse or a circle with a defined center and radius Frame - color around the screen (0-15)
LINE [[STEP] (x1,y1) ]-[STEP] (x2, y2) [,[color] [,[B [F] ][,style]]] Draws a line or rectangle  
PRESET, PSET [STEP](x,y)[color] An operator draws a point on the screen (X, y) - screen center coordinates of a circle or ellipse
DRAW symbol The operator interprets the symbolic expression and drawing a graphic Radius - radius in the current coordinate system
PAINT [STEP](x,y)[,[paint][,[border color][, fon ]]] The operator, paint over a limited area of the specified color or images.  

Пример:

SCREEN 0

COLOR 1, 2

LOCATE 12, 25: PRINT «Enter any button»

DO: LOOP WHILE INKEY$ =””

SCREEN 1

COLOR 1, 0

LINE (20, 20) – (300, 180), 3, B

LOCATE 12, 7: PRINT « Enter any button »

DO: LOOP WHILE INKEY$ =””

COLOR 2, 1

CIRCLE (200, 100), 60, , 0, 6.28

LOCATE 12, 7: PRINT « Enter any button »

DO: LOOP WHILE INKEY$ =””

SCREEN 0

COLOR 7, 0

CLS

END

The task

1. Write a program that displays the center of the screen blinking dot that changes color

2. Draw "a face" on the screen

3. Draw a graph of the function y = 1 / x;

4. Draw a triangle enclosed in a square;

5. Implement a rectangle rotated around its center;

6. Draw the sky with colored twinkling stars.

 

Control questions

1. How can I enable or disable the graphics mode?

2. Appointment setting mode.

3. What procedures are used in the construction of the simplest elements?




Не нашли, что искали? Воспользуйтесь поиском:

vikidalka.ru - 2015-2019 год. Все права принадлежат их авторам! Нарушение авторских прав | Нарушение персональных данных