Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a fully customizable wireframe sphere! I designed this in Desmos, and decided it would be cool to try to recreate with Blot!
The orientation of the sphere is randomly set each time through the vars
a
andb
, and the resolution (number of lines drawn) is set by the varn
. I found settingn
to 7 seems to work the best. In thesphere()
function towards the end of the program, the size and location of the sphere is set.The largest issue I have with this program is the fact that there is an extra line being drawn by the first drawLines function (visible in snapshot4.png), due to the way I have this set up. I spent far too long trying to figure out how to remove this extra line, but was unable to figure out how to easily remove it.
I really enjoyed learning about how Blot is set up and programmed, and how intuitive it is for new users to learn to use!
Math.random()
(See the documentation on randomness)Based on this desmos graph, created by me