37 lines
986 B
Markdown
37 lines
986 B
Markdown
# CSE 5543 Lab 1: Interactive Bezier Curve Editor
|
|
|
|
Author: Zhe Yuan
|
|
|
|
## Create Environment
|
|
|
|
I use `uv` to create a virtual environment for this project. You can synchronize the environment by running:
|
|
|
|
```bash
|
|
uv sync
|
|
```
|
|
|
|
## Run the Code
|
|
To run the interactive Bezier curve editor, execute the following command in your terminal:
|
|
|
|
```bash
|
|
uv run ibezier.py <num_points> OR <filename>
|
|
```
|
|
|
|
- `<num_points>`: An integer specifying the number of control points to create a new Bezier curve.
|
|
- `<filename>`: A string specifying the path to a file containing control points to load an existing Bezier curve.
|
|
|
|
For example, to create a new Bezier curve with 5 control points, run:
|
|
|
|
```bash
|
|
uv run ibezier.py 5
|
|
```
|
|
To load control points from a file named `control_points.txt`, run:
|
|
|
|
```bash
|
|
uv run ibezier.py control_points.txt
|
|
```
|
|
|
|
## Statement of AI Usage
|
|
|
|
I use Github Copilot's Auto Completion feature to help me write code and README faster. I ask Gemini to help me to debug GUI issues.
|