topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 8:57 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Single Dot in Graphics Window  (Read 13224 times)

nkormanik

  • Participant
  • Joined in 2010
  • *
  • Posts: 552
    • View Profile
    • Donate to Member
Single Dot in Graphics Window
« on: May 05, 2023, 02:42 AM »
Prologue:  To read maximally our eyes must move rapidly.  Some of us are lucky to naturally develop this at an early age.  It might still be possible for others of us to learn later.

The idea of the asked-for program is to help with reading development.

Disclaimer:  No guarantees.  Use at your own risk.

=====

Objective:  Randomly paint a dot in a graphics screen (programmer's choice)

In, say, an .ini file within program folder, user provides the following information:

-- Dot color (default=red)
-- Size of dot (default=100 pixels)
-- Background color (default=white)

-- Ability to do it again.  Preferably automatically, with xxx milliseconds between each iteration.  (default=250)

-- Finally, a timer value for the program to keep going until time is up.  (default=3 minutes)

So, upon execution the program will show a series of dots appearing on the screen, just one at a time, in various random places.  Once time is up, (say in 3 minutes) program can terminate.

In summary, double-click on desktop shortcut, program comes up, does it's thing, and terminates after specified time.

Possible complication: Size of graphics window.  If user adjusts size of window, what happens to the dots?  Do some fall outside the window?  Do the dots become smaller, in proportion to the window size?  Does the program remember window position?  Hmmm....

Thanks a million!

Nicholas Kormanik
« Last Edit: May 22, 2023, 05:34 PM by nkormanik »

publicdomain

  • Moderator
  • Joined in 2019
  • *****
  • Posts: 732
  • Call me Vic!
    • View Profile
    • Donate to Member
Re: Single Dot in Graphics Window
« Reply #1 on: May 05, 2023, 10:30 AM »
Sure thing Nick! I'm finishing a program for Contro to get into this within the next few days :Thmbsup:

(I'm actually stashing resources to perform a very focused DC coding spree for due releases & serving the fellows around, in line with this community's awesome vision :-*)
My name's Victor but do feel free to call me Vic!

Support with your DonationCredits!
❤️ Support on Patreon @ www.patreon.com/publicdomain
🎁 One-time Paypal @ www.paypal.com/paypalme/victorvls
Email/Paypal: publicdomainvicgmail.com
« Last Edit: May 07, 2023, 12:46 PM by publicdomain »

publicdomain

  • Moderator
  • Joined in 2019
  • *****
  • Posts: 732
  • Call me Vic!
    • View Profile
    • Donate to Member
Re: Single Dot in Graphics Window
« Reply #2 on: May 07, 2023, 12:51 PM »
Sure thing Nick! I'm finishing a program for Contro to get into this
-publicdomain (May 05, 2023, 10:30 AM)

I'm on it now!  :)

Name: nkDot.

Repo @ https://github.com/publicdomain/nkdot
My name's Victor but do feel free to call me Vic!

Support with your DonationCredits!
❤️ Support on Patreon @ www.patreon.com/publicdomain
🎁 One-time Paypal @ www.paypal.com/paypalme/victorvls
Email/Paypal: publicdomainvicgmail.com

nkormanik

  • Participant
  • Joined in 2010
  • *
  • Posts: 552
    • View Profile
    • Donate to Member
Re: Single Dot in Graphics Window
« Reply #3 on: May 08, 2023, 01:02 AM »
Vic, searching the web turned up the following:

https://github.com/v...andom-dots-generator

Download the .zip.  Extract.  Double-click on index.html.

Dots Amount = 1.  Radius = 10.

Have you experience in graphics programming?  I sense your programs heretofore have not involved graphics.  Hope this won't be something that keeps you away from what you prefer.

Look forward to seeing what you come up with.

« Last Edit: May 08, 2023, 03:32 AM by nkormanik »

publicdomain

  • Moderator
  • Joined in 2019
  • *****
  • Posts: 732
  • Call me Vic!
    • View Profile
    • Donate to Member
Re: Single Dot in Graphics Window
« Reply #4 on: May 08, 2023, 06:36 PM »
Vic, searching the web turned up the following:

https://github.com/v...andom-dots-generator

Hi Nick! That's for the web yet it can be useful as an existing example :up:

Have you experience in graphics programming?

Yes I do :)

As a matter of fact there's a graphics app in our PD project's repos @ https://github.com/publicdomain/screenmark

Hope this won't be something that keeps you away from what you prefer.

Helping the fellows with my skills is what I prefer! :Thmbsup: :-*

Look forward to seeing what you come up with.

I'm currently doing a DC coding spree right now; this is the next release

Cheers!
My name's Victor but do feel free to call me Vic!

Support with your DonationCredits!
❤️ Support on Patreon @ www.patreon.com/publicdomain
🎁 One-time Paypal @ www.paypal.com/paypalme/victorvls
Email/Paypal: publicdomainvicgmail.com
« Last Edit: May 08, 2023, 08:26 PM by publicdomain »

publicdomain

  • Moderator
  • Joined in 2019
  • *****
  • Posts: 732
  • Call me Vic!
    • View Profile
    • Donate to Member
Re: Single Dot in Graphics Window
« Reply #5 on: May 11, 2023, 12:17 AM »
If user adjusts size of window, what happens to the dots?

The way I'm coding it... the dots are painted the same no matter the window size.

If you need the program to operate full-screen in order to rid yourself of such ambiguities, please say it!

This stage of development is the perfect time :)

There's graphics code available for overlaying on top of all windows cleanly (i.e. border-less transparent/invisible window surface covering the desktop).
My name's Victor but do feel free to call me Vic!

Support with your DonationCredits!
❤️ Support on Patreon @ www.patreon.com/publicdomain
🎁 One-time Paypal @ www.paypal.com/paypalme/victorvls
Email/Paypal: publicdomainvicgmail.com

nkormanik

  • Participant
  • Joined in 2010
  • *
  • Posts: 552
    • View Profile
    • Donate to Member
Re: Single Dot in Graphics Window
« Reply #6 on: May 11, 2023, 01:02 AM »
Vic, no changes to top specifications.  I was just wondering how changing window size will affect dot size.  Or, in a smaller window, will dots be showing up outside the window, and, thus, not actually be seen.

Really, any way you accomplish the overall objective will be terrific.

Maybe others here will have some comments.

Thanks a million!

publicdomain

  • Moderator
  • Joined in 2019
  • *****
  • Posts: 732
  • Call me Vic!
    • View Profile
    • Donate to Member
Re: Single Dot in Graphics Window
« Reply #7 on: May 12, 2023, 01:19 PM »
Really, any way you accomplish the overall objective will be terrific.

The program is shaped :up:

(Also making a handy .ini editor GUI to accompany nkDot)

Stay tuned!

nkDotEditor_ALPHA01.pngSingle Dot in Graphics Window

nkDot_ALPHA01.pngSingle Dot in Graphics Window
My name's Victor but do feel free to call me Vic!

Support with your DonationCredits!
❤️ Support on Patreon @ www.patreon.com/publicdomain
🎁 One-time Paypal @ www.paypal.com/paypalme/victorvls
Email/Paypal: publicdomainvicgmail.com
« Last Edit: May 18, 2023, 07:57 AM by publicdomain »

publicdomain

  • Moderator
  • Joined in 2019
  • *****
  • Posts: 732
  • Call me Vic!
    • View Profile
    • Donate to Member
Re: Single Dot in Graphics Window
« Reply #8 on: May 18, 2023, 08:02 AM »
In, say, an .ini file within program folder [...]

Hi Nick! We're going to go with idiomatic XML files (.NET) instead of .ini files. Thanks to the editor GUI, chances are you're hardly going to have to edit things manually, so it makes sense for both programs to pass properties/configuration state natively :)

nkDot Editor:

nkDotEditor_ALPHA02.png
My name's Victor but do feel free to call me Vic!

Support with your DonationCredits!
❤️ Support on Patreon @ www.patreon.com/publicdomain
🎁 One-time Paypal @ www.paypal.com/paypalme/victorvls
Email/Paypal: publicdomainvicgmail.com
« Last Edit: May 18, 2023, 11:53 AM by publicdomain »

publicdomain

  • Moderator
  • Joined in 2019
  • *****
  • Posts: 732
  • Call me Vic!
    • View Profile
    • Donate to Member
Re: Single Dot in Graphics Window
« Reply #9 on: May 21, 2023, 01:28 AM »
Hi Nick! nkDot v0.1.0 is published!  :)


Please confirm it works for you & meets your requirements :Thmbsup:

Anything else, just "shout" --I'm around to assist

Cheers!
Vic
My name's Victor but do feel free to call me Vic!

Support with your DonationCredits!
❤️ Support on Patreon @ www.patreon.com/publicdomain
🎁 One-time Paypal @ www.paypal.com/paypalme/victorvls
Email/Paypal: publicdomainvicgmail.com

nkormanik

  • Participant
  • Joined in 2010
  • *
  • Posts: 552
    • View Profile
    • Donate to Member
Re: Single Dot in Graphics Window
« Reply #10 on: May 23, 2023, 07:10 PM »
I love it, Vic!!  You continue to do the amazing!

nkormanik

  • Participant
  • Joined in 2010
  • *
  • Posts: 552
    • View Profile
    • Donate to Member
Re: Single Dot in Graphics Window
« Reply #11 on: July 27, 2023, 03:46 AM »
Just curious, Vic....

Is the random pattern the same each and every time, or does it change each time?

Oftentimes a random number series starts with a 'seed.'  If the seed is the same each run, the runs are identical.

If the 'seed' comes from, say, the current time, down to the millisecond, the series will always be different.

publicdomain

  • Moderator
  • Joined in 2019
  • *****
  • Posts: 732
  • Call me Vic!
    • View Profile
    • Donate to Member
Re: Single Dot in Graphics Window
« Reply #12 on: July 27, 2023, 11:12 AM »
Is the random pattern the same each and every time, or does it change each time?

Hi Nick! The default "seeding" for the C# language random generator code is used, so it should be dynamic :Thmbsup:
My name's Victor but do feel free to call me Vic!

Support with your DonationCredits!
❤️ Support on Patreon @ www.patreon.com/publicdomain
🎁 One-time Paypal @ www.paypal.com/paypalme/victorvls
Email/Paypal: publicdomainvicgmail.com

nkormanik

  • Participant
  • Joined in 2010
  • *
  • Posts: 552
    • View Profile
    • Donate to Member
Re: Single Dot in Graphics Window
« Reply #13 on: July 28, 2023, 03:24 AM »
Very nice little gem, Vic!

Thanks a million.

nkormanik

  • Participant
  • Joined in 2010
  • *
  • Posts: 552
    • View Profile
    • Donate to Member
Re: Single Dot in Graphics Window
« Reply #14 on: August 24, 2023, 02:26 AM »
Vic, a possible enhancement request, if you might have the time.

Could be a separate program, very similar to the existing one.  Or could be an addition built into the present program.

Suppose the latter.  Incorporate: "Mode".

Existing mode is what exists presently.  Let's call it "Random".

A second mode, though, would be quite useful.  Let's call it "Corners".

(or a separate program called, perhaps, "Corners Dot".)

In this second mode, a single dot (exactly as in present program) appears in the North-West corner.  Then jumps to the South-East corner.  Then to the North-East corner.  And finally to the South-West corner.  After those four dots -- creating, basically, a large X -- process simply repeats for the allotted time.

Any thoughts?

Thanks!
Nicholas



publicdomain

  • Moderator
  • Joined in 2019
  • *****
  • Posts: 732
  • Call me Vic!
    • View Profile
    • Donate to Member
Re: Single Dot in Graphics Window
« Reply #15 on: August 24, 2023, 09:47 AM »
Vic, a possible enhancement request, if you might have the time.

Totally possible! Some "PD coding time" is being refreshed :Thmbsup:
My name's Victor but do feel free to call me Vic!

Support with your DonationCredits!
❤️ Support on Patreon @ www.patreon.com/publicdomain
🎁 One-time Paypal @ www.paypal.com/paypalme/victorvls
Email/Paypal: publicdomainvicgmail.com
« Last Edit: September 27, 2023, 12:25 PM by publicdomain »

nkormanik

  • Participant
  • Joined in 2010
  • *
  • Posts: 552
    • View Profile
    • Donate to Member
Re: Single Dot in Graphics Window
« Reply #16 on: September 03, 2023, 02:30 AM »
nkDot-Random
nkDot-Corners

Super, Vic!  Really looking forward to it.

nkormanik

  • Participant
  • Joined in 2010
  • *
  • Posts: 552
    • View Profile
    • Donate to Member
Re: Single Dot in Graphics Window
« Reply #17 on: September 17, 2023, 06:11 PM »
Vic, I'd prefer nkDot-Corners be a separate program, so that when one double-clicks on it it just does its thing.  No muss no fuss.  Exactly as nkDot-Random does.

Hope it's not too difficult.

Thanks!

publicdomain

  • Moderator
  • Joined in 2019
  • *****
  • Posts: 732
  • Call me Vic!
    • View Profile
    • Donate to Member
Re: Single Dot in Graphics Window
« Reply #18 on: September 27, 2023, 12:29 PM »
Vic, I'd prefer nkDot-Corners be a separate program, so that when one double-clicks on it it just does its thing.  No muss no fuss.  Exactly as nkDot-Random does.

nkDot-Corners repo opened:

https://github.com/publicdomain/nkdot-corners

Hang in there. It's coming :Thmbsup:
My name's Victor but do feel free to call me Vic!

Support with your DonationCredits!
❤️ Support on Patreon @ www.patreon.com/publicdomain
🎁 One-time Paypal @ www.paypal.com/paypalme/victorvls
Email/Paypal: publicdomainvicgmail.com

nkormanik

  • Participant
  • Joined in 2010
  • *
  • Posts: 552
    • View Profile
    • Donate to Member
Re: Single Dot in Graphics Window
« Reply #19 on: September 27, 2023, 05:59 PM »
Big smile, Vic!

You da man.

nkormanik

  • Participant
  • Joined in 2010
  • *
  • Posts: 552
    • View Profile
    • Donate to Member
Re: Single Dot in Graphics Window
« Reply #20 on: October 22, 2023, 01:45 AM »
Vic!  Attached is a Python version of what I have in mind (have to rename extension to .py).

It's asking a lot of you, but I really like nkDot-Random.  Beautifully smooth.  And easy to configure using your included editor.

So, hoping you will continue to have time to work on nkDot-Corners.

Thanks a million!
Nicholas


publicdomain

  • Moderator
  • Joined in 2019
  • *****
  • Posts: 732
  • Call me Vic!
    • View Profile
    • Donate to Member
Re: Single Dot in Graphics Window
« Reply #21 on: October 31, 2023, 08:09 AM »
Hi Nick! I'm back in the saddle. Your program is 99% done so it's the next one :Thmbsup:

It uses the same settings-data format hence the same nkDot editor is valid for both versions.

Thanks again for your patience (It's exactly what you requested, so it's worth it).

Cheers!
My name's Victor but do feel free to call me Vic!

Support with your DonationCredits!
❤️ Support on Patreon @ www.patreon.com/publicdomain
🎁 One-time Paypal @ www.paypal.com/paypalme/victorvls
Email/Paypal: publicdomainvicgmail.com
« Last Edit: October 31, 2023, 09:57 AM by publicdomain »

publicdomain

  • Moderator
  • Joined in 2019
  • *****
  • Posts: 732
  • Call me Vic!
    • View Profile
    • Donate to Member
Re: Single Dot in Graphics Window
« Reply #22 on: October 31, 2023, 04:02 PM »
You program's code is 100% complete & pushed to GitHub :)

Source @ https://github.com/p...tCorners/MainForm.cs

I'm now making the .exe release package to call it done
My name's Victor but do feel free to call me Vic!

Support with your DonationCredits!
❤️ Support on Patreon @ www.patreon.com/publicdomain
🎁 One-time Paypal @ www.paypal.com/paypalme/victorvls
Email/Paypal: publicdomainvicgmail.com

publicdomain

  • Moderator
  • Joined in 2019
  • *****
  • Posts: 732
  • Call me Vic!
    • View Profile
    • Donate to Member
Re: Single Dot in Graphics Window
« Reply #23 on: October 31, 2023, 07:37 PM »
Enjoy nkDot-corners v0.1.0:


You can simply add it to your current nkDot folder so you can easily share the editor for both programs.

Cheers! :-* :Thmbsup:
Vic
My name's Victor but do feel free to call me Vic!

Support with your DonationCredits!
❤️ Support on Patreon @ www.patreon.com/publicdomain
🎁 One-time Paypal @ www.paypal.com/paypalme/victorvls
Email/Paypal: publicdomainvicgmail.com
« Last Edit: October 31, 2023, 08:08 PM by publicdomain »

nkormanik

  • Participant
  • Joined in 2010
  • *
  • Posts: 552
    • View Profile
    • Donate to Member
Re: Single Dot in Graphics Window
« Reply #24 on: November 01, 2023, 01:20 AM »
Wow, Vic!  My eyes are popping out.  But that's precisely what I asked for.

Monumental achievement.  You the best!