Skip to content

Add alpha of usage example - #784

Open
Abod-A wants to merge 3 commits into
thoth-tech:mainfrom
Abod-A:add-alpha-of-usage-example
Open

Add alpha of usage example#784
Abod-A wants to merge 3 commits into
thoth-tech:mainfrom
Abod-A:add-alpha-of-usage-example

Conversation

@Abod-A

@Abod-A Abod-A commented Jul 21, 2026

Copy link
Copy Markdown

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_of and displayed below its rectangle.

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

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

  • Tested in latest Chrome
  • Tested in latest Firefox
  • npm run build
  • npm run preview

Checklist

Please delete options that are not relevant.

If involving code

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code in hard-to-understand areas

Folders and Files Added/Modified

Please list the folders and files added/modified with this pull request and delete options that are not relevant.

  • Added:
    • alpha_of-1-example.cpp
    • alpha_of-1-example.py
    • alpha_of-1-example-top-level.cs
    • alpha_of-1-example-oop.cs
    • alpha_of-1-example.txt
    • alpha_of-1-example.png

Additional Notes

@netlify

netlify Bot commented Jul 21, 2026

Copy link
Copy Markdown

Deploy Preview for splashkit failed.

Name Link
🔨 Latest commit 0edeb58
🔍 Latest deploy log https://app.netlify.com/projects/splashkit/deploys/6a5f9fda9d43b90008f9067f

@jankiluitel jankiluitel left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 himanshigaba22 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants