> For the complete documentation index, see [llms.txt](https://help.trikset.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.trikset.com/en/trik-studio-junior/visual-programming.md).

# Visual programming in TRIK Studio Junior

A program in the TRIK Studio Junior is represented as a sequence of the [blocks](/en/trik-studio-junior/visual-programming/blocks.md) connected by the [links](/en/trik-studio-junior/visual-programming/connection-between-blocks.md).&#x20;

![](/files/-MTavSTqmbFKGi4HjXJd)

Each program corresponds to the [main diagram](/en/trik-studio-junior/visual-programming.md#main-diagram), which may contain other [diagrams (subprograms)](/en/trik-studio-junior/visual-programming.md#subprograms). Diagrams are packaged in projects stored on the disk.

![](/files/-MTavVgM7wfBj7TAmlaL)

## Main diagram <a href="#main-diagram" id="main-diagram"></a>

The main diagram is created when the [project is created](/en/trik-studio-junior/start.md#project-creation). About adding and removing blocks to the [scene](/en/studio/interface.md#editor-window), read the article:

{% content-ref url="/pages/-MaDT\_3h6e4aB0nq3K5u" %}
[Adding and removing blocks in TRIK Studio Junior](/en/trik-studio-junior/visual-programming/blocks-add-delete.md)
{% endcontent-ref %}

## Subprograms

The diagrams with subprograms are created automatically when you add the block "Subprogram" to the scene. In this case, the subprogram is displayed by double-clicking on the "Subprogram" block on the scene.

![](/files/-MTavax1O3micIpXbk3P)

Read more about subprograms in the article:

{% content-ref url="/pages/-MaDUL4gQGbZYW0bO9Mr" %}
[Subprograms in TRIK Studio Junior](/en/trik-studio-junior/visual-programming/subprograms.md)
{% endcontent-ref %}
