CodingTrain / CodingTrain/Suggestion-Box

Mystic Rose

Open
#316 1 comment 1 reaction 0 assignees View on GitHub
Challenge
Dominant language
No language data
Stars
570
Forks
85
PR merge metrics
No merged PRs in 30d

Description

The mystic rose is a pretty simple pattern, yet it looks cool. It works quite simply: you have a circle, the circle has 'N' points on it (they don't necessarily need to be evenly spaced), and then each point on the circle connects to every other point on the circle.

A simple demonstration for this is : http://demonstrations.wolfram.com/TheMysticRose/

One solution for this in p5 and Processing was this : https://gist.github.com/AlcaDesign/7ec612e94b19f9a2865a8f1cbcd95573 although there are a few performance issues.

Note : To debug certain issues (too many/too little lines being drawn - and other related problems) the formula (N² / 2) + (N / 2) calculates how many lines should be drawn with a set number of points. N represents the number of points on the circle.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.