# LEGO NXT specific blocks

{% hint style="info" %}
This article is automatically translated from Russian by Google Translator.
{% endhint %}

Specialized blocks for LEGO NXT are divided into several categories:

1. [Action](#action-blocks) — blocks that perform some action on the robot: turn on motors, play sound, etc.
2. [Waiting](#waiting-blocks) — units waiting for some event to occur: certain sensor readings, button presses, etc.
3. [Drawings on the display](#drawing-on-the-display) — blocks used to display graphics and text on the screen

For the blocks available for all platforms, see the article

{% content-ref url="../studio/programming-visual/blocks" %}
[blocks](https://help.trikset.com/en/studio/programming-visual/blocks)
{% endcontent-ref %}

## Action blocks

|                                                                                                                                          Icon                                                                                                                                         |                 Name                 | Description                                                               |
| :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------: | ------------------------------------------------------------------------- |
|         <img src="https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5BlcBpNf64K5gw6gIO%2F-M5BlwHq-yVgQqdVZG9U%2FbeepBlock.png?alt=media&#x26;token=95d7eb26-4cdc-4aa0-b5b2-1fefa1f374af" alt="" data-size="original">         |             [Beep](#beep)            | Play a fixed-frequency sound on the robot.                                |
|       <img src="https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5Bm9ZnCn__hmy9nVEm%2F-M5BmHFaHzO4kMdsERfC%2FplayToneBlock.png?alt=media&#x26;token=90bbf446-c572-4ef7-9622-ed7a503c245e" alt="" data-size="original">       |        [Play Tone](#play-tone)       | Play the sound on the robot at a given frequency and duration.            |
|    <img src="https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5Bm9ZnCn__hmy9nVEm%2F-M5BmJVXWrn4YAJ0fHs2%2FenginesForwardBlock.png?alt=media&#x26;token=3b661940-68b4-46e5-8f70-b5146d2eab68" alt="" data-size="original">    |   [Motors Forward](#motors-forward)  | Turn on the motors on the set ports with the set power.                   |
|    <img src="https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5Bm9ZnCn__hmy9nVEm%2F-M5BmLHUjRiHjFs5pO8D%2FenginesBackwardBlock.png?alt=media&#x26;token=5af97e46-168e-46fd-a488-04dee28109db" alt="" data-size="original">   | [Motors Backward](#motors-forward-1) | Turn on the motors in reversing mode on the set ports with the set power. |
|      <img src="https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5Bm9ZnCn__hmy9nVEm%2F-M5BmNAsC41CG_fYhxA4%2FenginesStopBlock.png?alt=media&#x26;token=892025be-97b9-4e52-8659-eaf680eeb652" alt="" data-size="original">     |      [Stop Motors](#stop-motors)     | Turn off the motors on the specified ports.                               |
| <img src="https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5Bm9ZnCn__hmy9nVEm%2F-M5BmTSjEbST5vbHg1Wy%2FnullificationEncoderBlock.png?alt=media&#x26;token=b598ec07-614b-4612-a673-7e5c9579465e" alt="" data-size="original"> |    [Clear Encoder](#clear-encoder)   | Reset the number of motor revolutions.                                    |

### Beep <a href="#beep" id="beep"></a>

![Beep](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5BnujbVh5stuL-NwB9%2F-M5BqOaXc7nIyIRKm9XU%2FbeepBlock.png?alt=media\&token=c32c2a44-1440-402b-b34d-e1d41667ba33)

Play a fixed-frequency sound on the robot.\
\
Parameters:

1. Whether to wait for the sound to end or go straight to the next block. Valid values are true, false.
2. Playback volume (0 to 100%).

### Play Tone <a href="#play-tone" id="play-tone"></a>

![Play Tone](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5BnujbVh5stuL-NwB9%2F-M5BrO3_cj83K0iwjScy%2FplayToneBlock.png?alt=media\&token=ba928cf1-c468-4cd7-8f1d-92c11f7db898)

Play a sound on the robot with the set frequency and duration. Similar to the "Horn" block, but also allows you to set the sound parameters.\
\
Parameters:

* Frequency (Hz).
* Duration (ms).
* Whether to wait for the sound to end or go to the next block immediately. Valid values - true, false.
* Playback volume (from 0 to 100%).

### **Motors Forward** <a href="#motors-forward" id="motors-forward"></a>

![Motors Forward](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5BnujbVh5stuL-NwB9%2F-M5BrKl7AcZ5RG-ibRbM%2FenginesForwardBlock.png?alt=media\&token=5e182e89-dff5-4378-94b6-4c9785d4e33e)

Turn on the motors on the set ports with the set power. The ports are specified by the letters A, B, or C, separated by commas.

The power is set as a percentage from -100 to 100. If a negative value is set, the motor is reversed.

The motors have different modes of operation: braking mode and sliding mode (indicated by a red or green rectangle on the block, respectively). The modes affect the way the motor responds to a command - braking mode stops the motor when shut down, the sliding mode allows the motor to crank through its inertia.

### **Motors Backward** <a href="#motors-forward" id="motors-forward"></a>

![Motors Backward](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5BnujbVh5stuL-NwB9%2F-M5BrIhhKv8H1r-ldNpN%2FenginesBackwardBlock.png?alt=media\&token=3782bb6c-56a5-455e-bc2b-e4034169b858)

Turn on the motors in reversing mode on the set ports with the set power.

Parameters are similar to the parameters of the "Motors forward" block.

### **Stop Motors** <a href="#stop-motors" id="stop-motors"></a>

![Stop Motors](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5BnujbVh5stuL-NwB9%2F-M5BrH2uir15PwCKw0js%2FenginesStopBlock.png?alt=media\&token=42dfce3e-6353-4f1c-98a1-d117f742e3c5)

Turn off the motors on the specified ports.

### **Clear Encoder** <a href="#clear-encoder" id="clear-encoder"></a>

![Clear Encoder](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5BnujbVh5stuL-NwB9%2F-M5BrFJMIZ2pNffdo2P1%2FnullificationEncoderBlock.png?alt=media\&token=5ffcfd36-0fbc-42ae-b453-e43a16c1d4f4)

Reset the number of motor revolutions.

## Waiting Blocks

|                                                                                                                                          Icon                                                                                                                                          |                          Name                         | Description                                                                                                                               |
| :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------: | ----------------------------------------------------------------------------------------------------------------------------------------- |
|   <img src="https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5BnujbVh5stuL-NwB9%2F-M5Bp4UpyEdWu1pJ-X88%2FwaitForTouchSensorBlock.png?alt=media&#x26;token=cd2f01d0-ef83-49de-8361-e1166099c54d" alt="" data-size="original">  |    [Wait for Touch Sensor](#wait-for-touch-sensor)    | Wait for the touch sensor to work.                                                                                                        |
|  <img src="https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5BnujbVh5stuL-NwB9%2F-M5Bp9jez4AYWAg0ZAwY%2FwaitForSonarDistanceBlock.png?alt=media&#x26;token=234cc8a3-68c8-402b-b4ff-bc64e3f66396" alt="" data-size="original"> |  [Wait for Sonar Distance](#wait-for-sonar-distance)  | Wait until the distance returned by the ultrasonic distance sensor is comparable to that specified in the Distance parameter value.       |
|      <img src="https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5BnujbVh5stuL-NwB9%2F-M5BpC87t1FDn7DtY82u%2FwaitForColorBlock.png?alt=media&#x26;token=67f1548b-c778-4b25-ac45-42beaa4610ff" alt="" data-size="original">     |           [Wait for Color](#wait-for-color)           | Wait for the color sensor in color recognition mode to return the specified color.                                                        |
|     <img src="https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5BnujbVh5stuL-NwB9%2F-M5BpFVSN1ujAhH-h9z7%2FwaitForEncoderBlock.png?alt=media&#x26;token=b55f3706-572d-42d6-ac22-fbe13f217ba0" alt="" data-size="original">    |         [Wait for Encoder](#wait-for-enkoder)         | Wait until the RPM counter reading on the specified motor reaches the RPM Limit value specified in the "RPM Limit" parameter value.       |
| <img src="https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5BnujbVh5stuL-NwB9%2F-M5BpKV2d9QM6e8EYGnn%2FwaitForColorIntensityBlock.png?alt=media&#x26;token=17bc985c-e205-49de-90a0-7c10c2e3b27b" alt="" data-size="original"> | [Wait for Color Intensity](#wait-for-color-intensity) | Wait until the value returned by the color sensor on the specified port is comparable to the value specified in the Intensity parameter.  |
|      <img src="https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5BnujbVh5stuL-NwB9%2F-M5BpMXHDwtWr7Y4jU57%2FwaitForLightBlock.png?alt=media&#x26;token=6f3c003d-de3d-47d9-b4fe-6d7c91c71d64" alt="" data-size="original">     |           [Wait for Color](#wait-for-light)           | Wait until the value returned by the light sensor on the specified port is comparable to the value specified in the Percentage parameter. |
|   <img src="https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5BnujbVh5stuL-NwB9%2F-M5BpPhX0v0i5ar6UNM_%2FwaitForSoundSensorBlock.png?alt=media&#x26;token=c9267ab2-e005-4185-b2f0-13cc520ba2e2" alt="" data-size="original">  |    [Wait for Sound Sensor](#wait-for-sound-sensor)    | Wait until the volume read by the microphone on the specified port is above or below the set value.                                       |
|     <img src="https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5BnujbVh5stuL-NwB9%2F-M5BpU9i3qCHY9S8hm_Q%2FwaitForButtonsBlock.png?alt=media&#x26;token=77732310-984e-40b7-94c4-a1afa1a0f2a2" alt="" data-size="original">    |          [Wait for Button](#wait-for-button)          | Wait for the button on the robot body to be pressed.                                                                                      |

### Wait for Touch Sensor <a href="#wait-for-touch-sensor" id="wait-for-touch-sensor"></a>

![Wait for Touch Sensor](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5BnujbVh5stuL-NwB9%2F-M5BrC5-T2sAVNcYs8rP%2FwaitForTouchSensorBlock.png?alt=media\&token=a1fd9475-35bd-483b-a978-9b0d202c508a)

Wait for the touch sensor to work.

The parameter specifies the number of the port to which the sensor is connected. Valid values: 1, 2, 3, 4.

### Wait for Sonar Distance <a href="#wait-for-sonar-distance" id="wait-for-sonar-distance"></a>

![Wait for Sonar Distance](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5BnujbVh5stuL-NwB9%2F-M5Br9kf_g8YQU0Re-pK%2FwaitForSonarDistanceBlock.png?alt=media\&token=eca333d3-ba65-41c1-a602-be997482c821)

Wait until the distance returned by the ultrasonic distance sensor is comparable to that specified in the Distance parameter value.\
\
Parameters:

1. Distance (in centimeters, from 0 to 255).
2. Port - number of the port to which the distance sensor is connected.
3. Read value - the operation that will be used for comparison with the entered distance.

### Wait for Color <a href="#wait-for-color" id="wait-for-color"></a>

![Wait for Color](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5BnujbVh5stuL-NwB9%2F-M5Br6xwEG4hPYPhDkFn%2FwaitForColorBlock.png?alt=media\&token=702dcac4-74fa-4e3f-a355-90fa2f20658c)

Wait for the color sensor in color recognition mode to return the specified color.

Parameters:

1. Color.
2. Port - the number of the port to which the color sensor is connected.

### Wait for Encoder <a href="#wait-for-enkoder" id="wait-for-enkoder"></a>

![Wait for Encoder](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5BnujbVh5stuL-NwB9%2F-M5Br4I-5u0VxS-SsDut%2FwaitForEncoderBlock.png?alt=media\&token=f48f9f0b-86d0-43d2-a21b-31b2af69cc26)

Wait until the RPM counter reading on the specified motor reaches the RPM Limit value specified in the "RPM Limit" parameter value.

Parameters:

1. Port - the name of the port to which the motor is connected (A, B, or C).
2. Read value - the operation that will be used for comparison with the entered RPM limit.
3. RPM limit.

### Wait for Color Intensity <a href="#wait-for-color-intensity" id="wait-for-color-intensity"></a>

![Wait for Color Intensity](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5BnujbVh5stuL-NwB9%2F-M5Br0umss9xEKabaSZN%2FwaitForColorIntensityBlock.png?alt=media\&token=8d70c428-2779-48b7-be5d-22c82d4b9e51)

Wait until the value returned by the color sensor on the specified port is comparable to the value specified in the Intensity parameter.

Parameters:

1. Intensity (0 to 100%).
2. Port - number of the port to which the color sensor is connected.
3. Read value - the operation that will be used to compare with the entered intensity.

### Wait for Color <a href="#wait-for-light" id="wait-for-light"></a>

![Wait for Color](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5BnujbVh5stuL-NwB9%2F-M5BqzkcPYE_p7TbVhqf%2FwaitForLightBlock.png?alt=media\&token=04f29293-211e-4b03-afa0-85362806b233)

Wait until the value returned by the light sensor on the specified port is comparable to the value specified in the Percentage parameter.

Parameters:

1. Percentages (from 0 to 100%).
2. Port - the number of the port to which the color sensor is connected.
3. Read value - the operation that will be used to compare with the Percent value.

### Wait for Sound Sensor <a href="#wait-for-sound-sensor" id="wait-for-sound-sensor"></a>

![Wait for Sound Sensor](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5BnujbVh5stuL-NwB9%2F-M5BqxL-wVSaGvVmSfe8%2FwaitForSoundSensorBlock.png?alt=media\&token=58c5b8b6-c2be-4e84-b4ba-218e3d852042)

Wait until the volume read by the microphone on the specified port is above or below the set value.

### Wait for Button <a href="#wait-for-button" id="wait-for-button"></a>

![Wait for Button](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5BnujbVh5stuL-NwB9%2F-M5Bqu7ZTBBEulke5yZN%2FwaitForButtonsBlock.png?alt=media\&token=43d9e559-b204-4ecb-aa8d-d403e05de7c4)

Wait for the button on the robot body to be pressed.

## Drawing on the display

|                                                                                                                                     Icon                                                                                                                                     |                Name               | Description                                                                |
| :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------: | -------------------------------------------------------------------------- |
|  <img src="https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5BnujbVh5stuL-NwB9%2F-M5BpvXxv9LyFL100c9s%2FprintTextBlock.png?alt=media&#x26;token=83d64cf3-bb99-4b3e-81c5-1ab1148fde04" alt="" data-size="original">  |     [Print Text](#print-text)     | Prints the specified line at the specified location on the robot's screen. |
| <img src="https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5BnujbVh5stuL-NwB9%2F-M5Bpxg-Iq6fmXz0-k-U%2FclearScreenBlock.png?alt=media&#x26;token=71a7432f-7166-4302-8366-18bc01f5074a" alt="" data-size="original"> |   [Clear Screen](#clear-screen)   | Erase everything that is drawn on the screen.                              |
|   <img src="https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5BnujbVh5stuL-NwB9%2F-M5Bq-7mNbJpplzdWN58%2FdrawRectBlock.png?alt=media&#x26;token=217aa9e6-4410-4dca-8bf1-7435040e75f3" alt="" data-size="original">  | [Draw Rectangle](#draw-rectangle) | Draw a rectangle on the screen.                                            |
|  <img src="https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5BnujbVh5stuL-NwB9%2F-M5Bq1uME-aUYMEMRHeN%2FdrawPixelBlock.png?alt=media&#x26;token=e63eb75f-8e5c-4852-be68-78cb54fba455" alt="" data-size="original">  |     [Draw Pixel](#draw-pixel)     | Draw a point on the screen at the specified coordinates.                   |
|   <img src="https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5BnujbVh5stuL-NwB9%2F-M5Bq4PZ3GjvUK_CLYFT%2FdrawLineBlock.png?alt=media&#x26;token=63817ddc-213d-470d-8a63-6b8a44eb00ac" alt="" data-size="original">  |      [Draw Line](#draw-line)      | Draw a segment on the screen.                                              |
|  <img src="https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5BnujbVh5stuL-NwB9%2F-M5Bq6Tl5kPoJwA9m8bY%2FdrawCircleBlock.png?alt=media&#x26;token=d9eebdea-5b52-46c0-9d50-d900061844de" alt="" data-size="original"> |    [Draw Circle](#draw-circle)    | Draw a circle on the screen with a given center and a given radius.        |

### Print Text <a href="#print-text" id="print-text"></a>

![Print Text](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5BnujbVh5stuL-NwB9%2F-M5Bqs2S6-uR7_-78-n4%2FprintTextBlock.png?alt=media\&token=9dba1ca7-a672-43ba-a78c-f86a1a44a610)

Prints the specified line at the specified location on the robot's screen.

The default value of the Text property is treated as a pure string, and it will be displayed that way. To make the system assume that this is a textual expression (which can be useful, for example, when debugging variable values), check the "Compute" checkbox in the Property Editor.

### Clear Screen <a href="#clear-screen" id="clear-screen"></a>

![Clear Screen](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5BnujbVh5stuL-NwB9%2F-M5BqpZTMWU7yPakuCbb%2FclearScreenBlock.png?alt=media\&token=8e62ffc2-0df5-4549-8039-f4f27a9b1504)

Erase everything that is drawn on the screen.

### Draw Rectangle <a href="#draw-rectangle" id="draw-rectangle"></a>

![Draw Rectangle](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5BnujbVh5stuL-NwB9%2F-M5Bqn2KN1_RuT6ERhoD%2FdrawRectBlock.png?alt=media\&token=e4f38e90-018e-48fe-95b6-b0a2789ed362)

Draw a rectangle on the screen.

Parameters:

1. X, Y - coordinates of the upper left corner.
2. The width of the rectangle.
3. The height of the rectangle.
4. Update the picture (true or false).

### Draw Pixel <a href="#draw-pixel" id="draw-pixel"></a>

![Draw Pixel](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5BnujbVh5stuL-NwB9%2F-M5BqlBpYStHM-mRPu4K%2FdrawPixelBlock.png?alt=media\&token=702a542b-4adc-4ab7-8d20-3b018251b03d)

Draw a point on the screen at the specified coordinates.

### Draw Line <a href="#draw-line" id="draw-line"></a>

![Draw Line](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5BnujbVh5stuL-NwB9%2F-M5Bqj17uA5iltxYi6bv%2FdrawLineBlock.png?alt=media\&token=7ef526b9-b61c-4d5c-93fd-4a307a4350b5)

Draw a segment on the screen.

Parameters:

1. X1, Y1 - coordinates of the beginning of the segment.
2. X2, Y2 - coordinates of the end of the segment.
3. Update the picture (true or false).

### Draw Circle <a href="#draw-circle" id="draw-circle"></a>

![Draw Circle](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M5BnujbVh5stuL-NwB9%2F-M5Bqh87P57gPCDDu0me%2FdrawCircleBlock.png?alt=media\&token=5dc32f8a-2d98-4ded-ad78-3739b6e3a71b)

Draw a circle on the screen with a given center and a given radius.

Parameters:

1. X, Y - coordinates of the center of the circle.
2. The radius of the circle.
3. Update the picture (true or false).
