A casual idea, but looks surprised when finished.
If a quantity of lines cover on a circle, what will we see?
https://crawler995.github.io/Lines-in-Circle/
All configuration are in config.js
, you can modify them.
mapFunc
in it is the interesting item.
When it equals i * 2
, we will see Cardioid
curve in the circle.
When it equals i * 3
, we will see Nephroid
curve in the circle.
Try to modify it casually, there're endless possibilities.
- You can double click
index.html
to run it. In this way, if you modify the configuration or the source code, the changes will not become effective. You have to refresh the page. - do
npm install
, andnpm run dev
, the page will be opened automatically inlocalhost:3000
. In this way, if you modify the configuration or the source code, the changes will become effective immediately without manual refresh.