DonationCoder.com Software > PublicDomainVic
Single Dot in Graphics Window
nkormanik:
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
publicdomain:
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 :-*)
publicdomain:
Sure thing Nick! I'm finishing a program for Contro to get into this
-publicdomain (May 05, 2023, 10:30 AM)
--- End quote ---
I'm on it now! :)
Name: nkDot.
Repo @ https://github.com/publicdomain/nkdot
nkormanik:
Vic, searching the web turned up the following:
https://github.com/vsueiro/random-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.
publicdomain:
Vic, searching the web turned up the following:
https://github.com/vsueiro/random-dots-generator-nkormanik (May 08, 2023, 01:02 AM)
--- End quote ---
Hi Nick! That's for the web yet it can be useful as an existing example :up:
Have you experience in graphics programming?-nkormanik (May 08, 2023, 01:02 AM)
--- End quote ---
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.
-nkormanik (May 08, 2023, 01:02 AM)
--- End quote ---
Helping the fellows with my skills is what I prefer! :Thmbsup: :-*
Look forward to seeing what you come up with.-nkormanik (May 08, 2023, 01:02 AM)
--- End quote ---
I'm currently doing a DC coding spree right now; this is the next release
Cheers!
Navigation
[0] Message Index
[#] Next page
Go to full version