Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
marci1175 committed Dec 14, 2024
2 parents 768195f + c6caada commit 002aa5f
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
- The drawings are rendered with the [Bevy game engine](https://bevyengine.org/), to ensure flexibility, safety and speed.
- Ui components are created via [egui](https://crates.io/crates/egui).
- You can run scripts by utilizing the scripts tab but you can run quick commands via the Command Panel available in the application.
- - Syntax highlighting is available in the Script Manager and the Command Panel.
- Syntax highlighting is available in the Script Manager and the Command Panel.
- The Command Panel has the user friendly interface with features to enhance production.
- You can also save and open projects.

Expand All @@ -24,3 +24,20 @@
- Draw lines forward and backward.
- Rotate the drawer to left and right.
- Set the color of the lines the user is drawing.

### Documentation

1. **`new(String)`**
Creates a new drawer object with the specified name.

2. **`rotate(String, f32)`**
Rotates the object identified by the given name by a specified angle (`f32`). The angle is in degrees.

3. **`forward(String, f32)`**
Moves the object identified by the given name forward by the specified distance (`f32`). The direction of movement depends on the current orientation of the object.

4. **`center(String)`**
Centers the object identified by the given name.

5. **`color(String, f32, f32, f32, f32)`**
Sets the color of the object identified by the given name. The parameters `f32, f32, f32, f32` represent red, green, blue, and alpha (opacity) values, each ranging from 0.0 to 1.0.

0 comments on commit 002aa5f

Please sign in to comment.