View Single Post
  #12  
Old 01-22-2011, 01:30 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by darkcloud667 View Post
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.0;
  
  for (
temp.= (- 15); <= 15+= 0.5) { // change this to change the range of x values
    
with (findimg(200 c)) {
      
25 i;
      
10 parabola(i);
      
      
image "light4.png";
      
      
layer 3;
      
      
red 1;
      
green 0;
      
blue 0;
      
      
alpha 0.9;
    }
    
    
++;
  }
}

function 
parabola(i) { // returns y for y = 1/10(x^2); like f(x) = 1/10(x^2)
  
return (1/10) * (2);

__________________

Last edited by cbk1994; 01-22-2011 at 01:38 AM.. Reason: light4.png > light2.png
Reply With Quote