Discussion of article "Graphics in DoEasy library (Part 80): "Geometric animation frame" object class"

 

New article Graphics in DoEasy library (Part 80): "Geometric animation frame" object class has been published:

In this article, I will optimize the code of classes from the previous articles and create the geometric animation frame object class allowing us to draw regular polygons with a given number of vertices.

After the launch, press the keys drawing regular polygons and filling the area with color:


Everything works as intended. However, the shapes turn out to be pretty uneven... In my opinion, the appearance of polygons applying the Wu smoothing algorithm is the best. While filling, we are able to adjust the degree (threshold) of color filling by specifying the necessary threshold parameter:

form.FillOnBG(0,coordX1,coordY1,clrLightSteelBlue,255,10);

Author: Artyom Trishkin

Reason: