[Script] Graph |
Fierywarpath « Citoyen » 1403860740000
| 0 | ||
Have you ever wanted to plot a graph in transformice but couldn't? Well, you can now do that with this script I made! http://pastebin.com/tDR6TJ1R Here's a nice graph of x^2 - 4x + 3 and x/2: To use the script, just change minX and maxX to the range of x values you want. Do the same for minY and maxY. Then, change "return {x^2-4*x+3, x/2}" to return another equation of a graph you want.(Eg, "return {math.sin(x),math.cos(x),math.tan(x)}") After that, run the script and you will see your graph! You can use the map code @5170868 for a clearer view of your graph. script link: http://pastebin.com/tDR6TJ1R Note: It may lag a little. Script update: You can now have multiple equations! They will be drawn in different random colours. You can also click on the graph to see what the graph coordinate is. (coordinate will be rounded to 3 decimal places) Dernière modification le 1404474480000 |
Ttrabzonlee « Citoyen » 1404416940000
| 0 | ||
what is this??? |
Fierywarpath « Citoyen » 1404474840000
| 0 | ||
New update! You can now have multiple equations! They will be drawn in different random colours. You can also click on the graph to see what the graph coordinate is. (coordinate will be rounded to 3 decimal places) Ttrabzonlee a dit : You basically change some of the script to have your own graph plotted. No knowledge of lua is required to use this script but it's easier if you do. I explained how to use it in the original post but if you need more clarification, you can ask :) But if you don't know what graphs are, I can't explain it so it will be a pointless script for you :P |