Skip to content

feat: add interactive random_color usage example#778

Open
Sparsh300 wants to merge 1 commit into
thoth-tech:mainfrom
Sparsh300:feat/random-color-interactive-example
Open

feat: add interactive random_color usage example#778
Sparsh300 wants to merge 1 commit into
thoth-tech:mainfrom
Sparsh300:feat/random-color-interactive-example

Conversation

@Sparsh300
Copy link
Copy Markdown

Synopsis

A second example of using random_color that shows an interactive color-changing rectangle has been included.# Included Files

Random_color-2-example.cpp
The file random_color-2-example.py

  • random_color-2-example-oop.cs
  • random_color-2-top-level-example.cs
    Random_color-2-example.txt
  • random_color-2-example.png ## What the illustration accomplishes

When the user clicks the mouse, this example opens a graphical window and modifies the color of the rectangle. It shows how to use interactive graphics and event handling with random_color().# Examining

Run to test:
The version in C++
The version in Python
The version in C#

confirmed that:
The window opens properly.
Mouse clicks are picked up.
The rectangle undergoes dramatic color changes.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 21, 2026

Deploy Preview for splashkit failed.

Name Link
🔨 Latest commit b399acb
🔍 Latest deploy log https://app.netlify.com/projects/splashkit/deploys/6a0ede16fae0540007088485

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.

1 participant