Draw Line on Window Point-To-Point#659
Open
sananoureen35 wants to merge 1 commit intothoth-tech:mainfrom
Open
Conversation
✅ Deploy Preview for splashkit ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
9b2eb51 to
8afa529
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Added a new usage example for draw_line_on_window_point_to_point. The example lets users click a start point and an end point to draw a line on the window, with a live preview between clicks. This helps us understand basic mouse input and drawing lines in SplashKit.
Type of change
How Has This Been Tested?
I verified the example locally in two steps. First, I ran C++ and both C# variants individually using SplashKit templates. I confirmed that the first mouse click sets the start point, a live preview line follows the mouse until the second click, the second click commits the line, and Esc exits. I added the files to the repository and ran npm run build followed by npm run preview; I opened the Graphics page and confirmed the example rendered in tabs and the GIF displayed.
Testing Checklist
Checklist
If involving code
Folders and Files Added
src/assets/usage-examples-code/graphics/draw_line_on_window_point_to_point/draw_line_on_window_point_to_point-1-basic.cpp
src/assets/usage-examples-code/graphics/draw_line_on_window_point_to_point/draw_line_on_window_point_to_point-1-basic.cs
src/assets/usage-examples-code/graphics/draw_line_on_window_point_to_point/draw_line_on_window_point_to_point-1-basic-oop.cs
src/assets/usage-examples-code/graphics/draw_line_on_window_point_to_point/draw_line_on_window_point_to_point-1-basic.txt
public/usage-examples-images-gifs/graphics/draw_line_on_window_point_to_point-1-basic.gif