Commands


Commands allow us to interact with the canvas and the shapes we drew on it. Every command will take in some parameters required by it to take the necessary actions.

To invoke a command on a shape, just invoke the corresponding function with the necessary arguments. For example, to move a shape named greeting to the RIGHT, the command we write is

greeting.move(RIGHT)

Revine Command Example

The parameters and their order are important, and they depend on the command we fire. The parameters of each command are documented under the corresponding command doc. You can find all the supported commands in the menu on the left-hand side.


Notice any errors or typos? Please let us know or feel free to edit commands.md and issue a pull request.


Follow us on twitter @RevineLang

Built by Arpit Bhayani