42 lines
1.4 KiB
Markdown
42 lines
1.4 KiB
Markdown
|
# nanote
|
||
|
|
||
|
nanote is a simple drawing application written in C++20 that uses Skia for graphics rendering and SDL2 for window creation and event handling. The application allows users to draw on the window using the cursor.
|
||
|
|
||
|
## Description
|
||
|
|
||
|
This application provides a basic canvas where users can draw using their cursor. It utilizes Skia, a powerful 2D graphics library, for rendering graphics, and SDL2, a popular cross-platform development library, for window creation and event handling.
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
1. **Building the Project**:
|
||
|
- Make sure you have Bazel installed on your system.
|
||
|
- Navigate to the project directory.
|
||
|
- Run the following command to build the project:
|
||
|
|
||
|
```bash
|
||
|
bazel build //:skia_sdl2
|
||
|
```
|
||
|
|
||
|
2. **Running the Application**:
|
||
|
- After building the project, run the following command to execute the application:
|
||
|
|
||
|
```bash
|
||
|
bazel-bin/skia_sdl2
|
||
|
```
|
||
|
|
||
|
3. **Drawing on the Canvas**:
|
||
|
- Once the application window opens, you can draw on the canvas using your cursor.
|
||
|
|
||
|
4. **Exiting the Application**:
|
||
|
- To exit the application, simply close the window.
|
||
|
|
||
|
## Dependencies
|
||
|
|
||
|
- Skia: A powerful 2D graphics library.
|
||
|
- SDL2: A cross-platform development library providing low-level access to audio, keyboard, mouse, and display.
|
||
|
|
||
|
## License
|
||
|
|
||
|
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
||
|
|