Add distant_point_on_circle usage example#701
Open
ekam313 wants to merge 2 commits intothoth-tech:mainfrom
Open
Add distant_point_on_circle usage example#701ekam313 wants to merge 2 commits intothoth-tech:mainfrom
ekam313 wants to merge 2 commits intothoth-tech:mainfrom
Conversation
❌ Deploy Preview for splashkit failed.
|
Osaid2993
approved these changes
Mar 23, 2026
Osaid2993
left a comment
There was a problem hiding this comment.
Approved. This is a clear and beginner-friendly usage example, and the visual output makes the function easy to understand.
I only had two small suggestions. The window variables in the C# and C++ versions seem unused, so removing them could keep the code cleaner. I also noticed the instruction text is slightly different across languages, so making it consistent may help beginners compare the example more easily.
keep up the good work!
…e instruction text
Author
|
Thanks for the feedback! I’ve removed the unused window variables to improve code clarity and made the instruction text consistent across all language versions for better readability. |
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 the distant_point_on_circle function in the Geometry category.
This example demonstrates how to calculate and visually display the point on a circle that is furthest from a given reference point. The mouse position is used as the reference point, and the distant point updates dynamically in real time.
The example is designed to be beginner-friendly and clearly illustrates the geometric relationship between the circle center, reference point, and distant point using visual elements.
No additional dependencies were required.
Type of change
How Has This Been Tested?
The implementation was tested across multiple language versions to ensure correctness, consistency, and adherence to SplashKit usage example guidelines.
Python version was executed using:
skm python3 program.pyVerified that:
C# versions (top-level and OOP) were tested using:
dotnet runVerified that the application runs correctly and produces consistent behaviour with the Python version.
C++ version was compiled and executed using:
Verified that the program compiles successfully and renders the expected graphical output.
The example was also validated within the local website environment using:
npm run devConfirmed that:
Testing Checklist
Checklist
If involving code
Folders and Files Added/Modified
Please list the folders and files added/modified with this pull request and delete options that are not relevant.
Additional Notes
This example follows the usage example guidelines:
minimal and focused implementation
clear visual demonstration
consistent comments across languages
beginner-friendly structure
This is an initial usage example for the function and can be extended in future with additional variations if needed.