Вопрос задан 15.02.2019 в 20:52. Предмет Информатика. Спрашивает Краснов Лёха.

Можете написать по командам как в pascal нарисовать окружность(круг) закрашенный!!! срочно

пожалуйста!!!!!!!!!!!!!!!
0 0
Перейти к ответам

Ответы на вопрос

Внимание! Ответы на вопросы дают живые люди. Они могут содержать ошибочную информацию, заблуждения, а также ответы могут быть сгенерированы нейросетями. Будьте внимательны. Если вы уверены, что ответ неверный, нажмите кнопку "Пожаловаться" под ответом.
Отвечает Харламов Александр.
Setbrushcolor(clblue); - установка синего цвета для закрашивания
circle(200,200,50); - закрашенный круг синего цвета с центром в точке (200,200) и радиусом 50
0 0
Отвечает нейросеть ChatGpt. Будьте внимательны, ответы нейросети могут содержать ошибочные или выдуманные данные.

Drawing a Filled Circle in Pascal

To draw a filled circle in Pascal, you can use the `Graph` unit and the `FillEllipse` procedure. Here's an example of how you can do it:

```pascal program DrawFilledCircle; uses Graph;

var gd, gm: smallint;

begin // Initialize the graphics mode gd := Detect; InitGraph(gd, gm, '');

// Set the fill color SetFillStyle(SolidFill, 7); // 7 represents the color code for white

// Draw a filled circle FillEllipse(320, 240, 100, 100); // (320, 240) is the center of the circle, and 100 is the radius

// Close the graphics mode CloseGraph; end. ```

In this example, we first initialize the graphics mode using the `InitGraph` procedure. Then, we set the fill color using the `SetFillStyle` procedure. The first parameter of `SetFillStyle` specifies the fill pattern, and the second parameter represents the color code. In this case, we use `SolidFill` as the fill pattern and `7` as the color code, which corresponds to white.

Finally, we draw a filled circle using the `FillEllipse` procedure. The first two parameters specify the center of the circle, and the last parameter represents the radius. In this example, the center is at coordinates (320, 240), and the radius is 100.

After drawing the circle, we close the graphics mode using the `CloseGraph` procedure.

Please note that the code provided assumes you have the necessary Pascal compiler and graphics library installed. The specific steps to compile and run the code may vary depending on your development environment.

I hope this helps! Let me know if you have any further questions.

0 0

Топ вопросов за вчера в категории Информатика

Последние заданные вопросы в категории Информатика

Задать вопрос