Add alpha of usage example - #784
Conversation
❌ Deploy Preview for splashkit failed.
|
jankiluitel
left a comment
There was a problem hiding this comment.
Great work on this PR! The usage examples are clear, practical, and consistent across C++, Python, and C# implementations. I like that each example demonstrates a realistic use case, making it easier for learners to understand how the API functions are intended to be used. The accompanying screenshots/GIFs and description files add valuable context and improve the overall learning experience. The code is well organised, easy to follow, and aligns with the existing project structure.
One minor suggestion would be to ensure comments and descriptive text remain consistent across all language versions so that users receive the same guidance regardless of the language they choose. Other than that, I didn't identify any issues, and the implementation looks complete and well documented. Great job!
Approved. The implementation is clean, consistent, and follows the project's documentation and usage example standards. Nice work!
himanshigaba22
left a comment
There was a problem hiding this comment.
Great work! The implementation is clear, consistent across the supported languages, and demonstrates alpha_of well.
One small suggestion: consider making the .txt description a little more descriptive by mentioning that alpha_of reads and displays the alpha value of each colour. It would make the purpose of the example even clearer for users.
Approved.
Description
The example draws five rectangles of the same red color at increasing alpha values (50, 100, 150, 200, 255) over a light blue background stripe, making the transparency effect clearly visible. The alpha value of each color is read back using
alpha_ofand displayed below its rectangle.Type of change
Please delete options that are not relevant.
How Has This Been Tested?
i ran it locally on my machine.
Please describe the tests that you ran to verify your changes. Provide instructions so we can
reproduce. Please also list any relevant details for your test configuration.
Testing Checklist
Checklist
Please delete options that are not relevant.
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