Skip to content

wpinrui/roundArt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RoundArt

RoundArt is a static website in which users can use 3 sliders to create Mathematical art in a circle. It can be found at https://roundart.netlify.app.

Motivation

This project was created as a learning opportunity for working with 2D graphics libraries (Two.js) as well as to appreciate the marriage between Mathematics and Art. In addition, RoundArt can be used to engage children to increase their appreciation for geometry, revise concepts like radius and circumference, introduce modular arithmetic and encourage pattern-finding.

The drawing process

The algorithm for creating the 2D image goes as follows:

  1. Draw a circle.
  2. Choose some number of points to draw on the circumference of the circle, such that these points are spaced evenly.
  3. Number the points on the circle starting from 1.
  4. Choose a multiplier that is not equal to 1.
  5. For each point, multiply its number by the multiplier and take its result modulo the number of points if necessary. The result will be the number of the point to be connected to the first point using a line.

The results

The resulting artpiece depends on the number of points and multiplier selected by the user. Some possible outputs are as follows:

Technologies

  • HTML, CSS, JavaScript
  • Two.js

About

Using Two.js to create artwork out of circles and lines

Resources

Stars

Watchers

Forks

Languages