Skip to content

Conversation

@sananoureen35
Copy link

Description

Added a new usage example for draw_line_on_window_point_to_point. The example lets users click a start point and an end point to draw a line on the window, with a live preview between clicks. This helps us understand basic mouse input and drawing lines in SplashKit.

Type of change

  • Documentation (update or new)

How Has This Been Tested?

I verified the example locally in two steps. First, I ran C++ and both C# variants individually using SplashKit templates. I confirmed that the first mouse click sets the start point, a live preview line follows the mouse until the second click, the second click commits the line, and Esc exits. I added the files to the repository and ran npm run build followed by npm run preview; I opened the Graphics page and confirmed the example rendered in tabs and the GIF displayed.

Testing Checklist

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

Checklist

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
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

Folders and Files Added

src/assets/usage-examples-code/graphics/draw_line_on_window_point_to_point/draw_line_on_window_point_to_point-1-basic.cpp
src/assets/usage-examples-code/graphics/draw_line_on_window_point_to_point/draw_line_on_window_point_to_point-1-basic.cs
src/assets/usage-examples-code/graphics/draw_line_on_window_point_to_point/draw_line_on_window_point_to_point-1-basic-oop.cs
src/assets/usage-examples-code/graphics/draw_line_on_window_point_to_point/draw_line_on_window_point_to_point-1-basic.txt
public/usage-examples-images-gifs/graphics/draw_line_on_window_point_to_point-1-basic.gif

draw_line_on_window_point_to_point-1-basic

@netlify
Copy link

netlify bot commented Sep 21, 2025

Deploy Preview for splashkit ready!

Name Link
🔨 Latest commit 8afa529
🔍 Latest deploy log https://app.netlify.com/projects/splashkit/deploys/68e8791c2522250008213813
😎 Deploy Preview https://deploy-preview-659--splashkit.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@sananoureen35 sananoureen35 force-pushed the feat/draw-line-on-window-point-to-point-1-basic branch from 9b2eb51 to 8afa529 Compare October 10, 2025 03:10
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