CIRCLE FUNCTION V.1.0: Hey, Guys this week, We are sharing a new batch function with all you guys. The circle function is Created By Kvc. However, the algorithm to print the pixels on the right spot on the console is a bit complex.
So, I took a little bit of help from the algorithm they are using in C. Understanding the proper functioning and mathematical logic of the algorithm.
Simply, I parsed all the knowledge into the Batch Programming language format, to a text document.
And after a few formatting steps, It results in a beautiful and properly functioning Batch Plugin, Which can easily fix most of the GUI issues in the CUI world of Batch programming.
“The beginning is the most important part of the work.”
The algorithm really seems to be a work of genius. Because, We don’t have Sin() or Cos() functions in Batch. There is a need for a maths library in Batch Programming, #TheBATeam is working on it too.
But, For the time – The algorithm is so, mathematically simple that it allows putting a circle on the console without making complex mathematical calculations. We like, its simple and effective nature.
CIRCLE FUNCTION V.1.0
The circle seems to be elliptical in shape. So, Why #TheBATeam is calling it a circle each time we are using it. The Reason for its elliptical nature on the console is that Cmd Uses mono-spaced Fonts.
And they are Longer in Height than In width. Hence, the circle (which is created using characters, not pixels) appeared longer in height than the width and thus, appear as an Elipse.
But, With some Fn.dll usage, We can adjust this property of the Font and make them squared, then we can have our official circle on the console. We can use the ‘Font’ parameter of Fn.dll plugin and have our desired result as shown in the demo below.
As now you can see the difference in the output, from the images above in this article. The Function is very healthy in this environment and works perfectly fine.
This may result in a milestone in the advancement of batch programming. And making it one step ahead towards the future.
So, Now without wasting any time, Let’s jump to my Favorite section. Where you can know about using this awesome function and download it. Use it in your personal projects. Let’s have a look.
Finally, we are talking sense. Now, To use this awesome function.We think The legendary help menu will do most of our work here. We only need to put a simple image and our work is over. You can have an idea about its usage below.
If you couldn’t get anything or needed a little help. We strongly recommend watching the Video embedded Below.
If still in doubt, We are here to help. Just throw a question at us, via the comment field below. We’ll be there for you within 24 hours.
Finally, It’s time. We need to go back to our daily life routine. But, we’ll be again back. Don’t forget to leave your precious feedback via the comment field below.
It will only take a few seconds. You can download the Function form the link given below.
Keep learning, keep sharing….TheBATeam
Be happy, spread happiness…