RosettaCodeData/Lang/ScratchScript/00-LANG.txt
2023-07-01 13:44:08 -04:00

38 lines
No EOL
1.6 KiB
Text

{{stub}}
''For solutions in the programming language developed by the Lifelong Kindergarten group at the MIT Media Lab, see [[:Category:Scratch]].''
{{language
|checking=static
|hopl=no
|site=
}}
{{language programming paradigm|object-oriented}}
ScratchScript is a programming language and the name of [https://scratch.mit.edu/projects/325836628/ its official IDE] (which is in the form of a command-line interface) that runs on top of [[Scratch]], originally released on November 25th, 2019 by [[Scratch]] user [https://scratch.mit.edu/users/NTPrograms NTPrograms].
ScratchScript features the following commands:
{| class="wikitable"
!Command
!Description
|-
| style="text-align:center"| <code>print</code> || Displays the specified text on the screen.
|-
| style="text-align:center"| <code>color</code> || Sets the color of the text.
|-
| style="text-align:center"| <code>delay</code> || Pauses program execution for the specified amount of seconds.
|-
| style="text-align:center"| <code>clear</code> || Clears all text.
|-
| style="text-align:center"| <code>pos</code> || Sets the x and y coordinates of the text.
|-
| style="text-align:center"| <code>textSize</code> || Sets the size of the text.
|-
| style="text-align:center"| <code>newln</code> || Creates a new line.
|-
| style="text-align:center"| <code>loop</code> || Loops the code from <code>{</code> to <code>}</code> the specified amount of times.
|-
| style="text-align:center"| <code>delayOnClick</code> || Pauses program execution until the mouse is clicked.
|-
| style="text-align:center"| <code>//</code> || Acts as a comment.
|}
[[Category:Language Implementations in Scratch]]
[[Category:Web Application]]