Add base64 encode usage examples in multiple languages#688
Open
222448082Ashen wants to merge 2 commits intothoth-tech:mainfrom
Open
Add base64 encode usage examples in multiple languages#688222448082Ashen wants to merge 2 commits intothoth-tech:mainfrom
222448082Ashen wants to merge 2 commits intothoth-tech:mainfrom
Conversation
Added example code for base64 encoding using SplashKit in C#, C++ (OOP and top-level), and Python, along with a sample output image and a brief description text. These examples demonstrate how to encode a string to Base64 format across different programming languages.
✅ Deploy Preview for splashkit ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Inserted new usage examples for 'rectangle_around', 'bitmap_center', 'base64_encode', and 'close_window' in usage-example-references.json. Also fixed duplicate and ordering issues for 'lines_intersect'. Minor formatting changes to some example titles. Updated api-pages-script.cjs to add anchor spans for function links.
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
Splashkit Function:
base64_encodeOverview of example functionality: This example demonstrates how to use the
base64_encodefunction to convert a standard string (e.g., "Hello World") into its Base64 encoded representation. It prints both the original and encoded strings to the console.Example Output:
(Note: The screenshot
base64_encode-1-example.pnghas been created in the directory)Text Output:
Files Included
[x] C++ code
[x] C# code (Top-Level statements)
[x] C# code (Object-Oriented Programming)
[x] Python code
[x] Relevant title for the example (.txt)
[x] Screenshot
Usage Example Checks
[x] Code uses Splashkit function above
[x] Code does not use non-Splashkit functions
[x] Code does not use extra function declarations or extra classes
[x] Code does not violate any of the Thoth Tech SplashKit Style Guide rules
[x] Simple, clear demonstration of the function
[x] Tested in Chrome and Firefox