Skip to content

This MATLAB script generates Regular Polygon Spiral drawings with customizable parameters such as the number of sides, figure center, radius, iteration count, angle distribution, color, and direction. It utilizes the GNU General Public License for distribution and modification.

License

Notifications You must be signed in to change notification settings

Armanx200/Regular-Polygon-Spiral

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎨 Animated Polygon Generator 🌀

This MATLAB script generates animated polygon drawings with customizable parameters such as the number of sides, figure center, radius, iteration count, angle distribution, color, and direction. It utilizes the GNU General Public License for distribution and modification. ✨

Polygon

Features:

  • Generate animated polygon drawings with varying properties. 🖼️
  • Customizable parameters for number of sides, figure center, radius, iteration count, angle distribution, color, and direction. 🛠️
  • Utilizes MATLAB's plotting capabilities for dynamic visualizations. 🌈

Usage:

1️⃣ Define parameters like number of sides, figure center, radius, etc. 2️⃣ Call the Polygon function with desired parameters to generate animated polygons. 3️⃣ Customize colors, direction, and other visual aspects for diverse animations. 🎥

Example:

NUM_SIDES = 4;
PLOT_SIZE = 10;
HOW_MANY_TIMES = 10;
color = 'k'; % Default color is black
direction = {'l','r','d','l'};  % ltr rtl dtb ltr
fig_center = {[n,n], [-n,n], [n,-n], [-n,-n]};
angle_dist = HOW_MANY_TIMES/6;

% Plot
figure;
hold on;
plot(x_bordar, y_bordar, 'black', 'LineWidth', 2);
for i=1:4
    Polygon(NUM_SIDES, fig_center{i}, PLOT_SIZE/3, HOW_MANY_TIMES, angle_dist, color, direction{i});
end

Arman Kianian

About

This MATLAB script generates Regular Polygon Spiral drawings with customizable parameters such as the number of sides, figure center, radius, iteration count, angle distribution, color, and direction. It utilizes the GNU General Public License for distribution and modification.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages