Quote:
Originally Posted by darkcloud667
im a little curious as to how you would be able to implement this to show the formula in a particle form. i mean showing the parabola that the equation would create. i think it'd be pretty cool to be able to do parabolas on graal out of pretty lights.
any ideas :o
|
A simple parabola:
Not sure if it's possible to use particles but you could easily use lights:
PHP Code:
//#CLIENTSIDE
function onCreated() {
this.showLights();
}
function showLights() {
temp.c = 0;
for (temp.i = (- 15); i <= 15; i += 0.5) { // change this to change the range of x values
with (findimg(200 + c)) {
x = 25 + i;
y = 10 + parabola(i);
image = "light4.png";
layer = 3;
red = 1;
green = 0;
blue = 0;
alpha = 0.9;
}
c ++;
}
}
function parabola(i) { // returns y for y = 1/10(x^2); like f(x) = 1/10(x^2)
return (1/10) * (i ^ 2);
}
