Add draw circle graphics usage examples #677
Open
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
Splashkit Function:
draw_circleandfill_circleThis PR adds a new usage example demonstrating how to draw circles using SplashKit's
draw_circleandfill_circlefunctions. The example creates a window and draws multiple circles with different colors, sizes, and positions to showcase various circle drawing capabilities.Overview of example functionality:
This example demonstrates basic circle drawing in SplashKit. The code creates a visual showcase featuring:
fill_circleThe example is designed to be simple and educational, showing both filled and outlined circle variants in a single demonstration.
Example Output:
The program opens an 800x600 window displaying:
Type of change
How Has This Been Tested?
All language versions were tested locally:
C++ (MSYS2/SplashKit):
g++ draw_circle-1-example.cpp -lsplashkit -o draw_circle_testPython:
python draw_circle-1-example.pyC# (both versions):
Build verification:
npm run setup- JSON files and API MDX pages generated successfullyTesting Checklist
Checklist
If involving code
If modified config files
Folders and Files Added/Modified
Added:
public/usage-examples/graphics/draw_circle-1-example.cpppublic/usage-examples/graphics/draw_circle-1-example-top-level.cspublic/usage-examples/graphics/draw_circle-1-example-oop.cspublic/usage-examples/graphics/draw_circle-1-example.pypublic/usage-examples/graphics/draw_circle-1-example.txtpublic/usage-examples/graphics/draw_circle-1-example.pngUsage Example Checks
draw_circleandfill_circleAdditional Notes
Relationship to existing examples:
draw_circle_on_window,draw_circle_on_bitmap, andfill_circleexamplesDesign choices:
draw_ellipse)Testing notes:
For reviewers:
To test this example locally: