-
Notifications
You must be signed in to change notification settings - Fork 502
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BlotGrapher- V205 #226
BlotGrapher- V205 #226
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@V205Arduino is attempting to deploy a commit to the Hack Club Team on Vercel. A member of the Team first needs to authorize it. |
Thanks so much for the submission. I love this graphing functionality! Do you think you could use it to make something artistic as well? I think this idea applied to creating a nice visual piece will certainly earn a Blot. |
I don't think I can reopen this? |
I think you're file is a little messed up. It's related to the |
Ok, thank you, |
Is this eligible for a Blot or should I start over? |
Have updated OP and code |
Nice! Here is your Blot order form. Well earned. |
Thank you! |
Hi! This is my blot program.
This was a collaboration between me and @BrightTheBackpack
BlotGraph ( or BlotGrapher) can currently plot lines (probably can’t draw an equation with two y values for every x yet.) and crop them.
To draw lines, create a function for a formula in the format y = ???
Example:
var quadratic = function(n) { return (1 / 4 * n * n - 2 * n+ 4) } //v+Math.sqrt(r-Math.pow(n-v,2)))
Draw it in a draw turtle with the drawEquation command:
`drawTurtles([
drawEquation(quadratic, 1, 100, 20),
]);
`
The drawEquation function has these parameters:
drawEquation(formula, resolution, maxX, minX, maxY, minY)
All the parameters can be left blank except for the formula one
Old way(don’t use):