Last active
June 5, 2016 06:18
-
-
Save migsalazar/c9232f86cc0d4f4452210d3f10c7378a to your computer and use it in GitHub Desktop.
Plotting functions with canvas
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (var x = xstart; x < width; x++) { | |
xreal = (x / (xorigin)) - x0, | |
yreal = height - ((f(xreal) - y0) * _yscale); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment