3-D Sine Wave Generator

  • FeynmanLogomaker
    4th Jun 2013 Member 1 Permalink

    The code:

     

    function sine(endX,endY)
    d = 0.005; -- Warpedness, don't edit this.
    l = tpt.input("Curvature","How steep the curves are.","1");
    l = 0.01 * l;
    t = tpt.input("Pixel separation","How far apart the points are","3");
    i = tpt.input("Curvature","Well, curve density","2");
    for x = 0,endX,s do
    for y = 0,endY,s do
    a = x + (d * y * (300 - x));
    tpt.create(a, 200 - (y / (1 + l * y))/(1 + 10 * l * math.sin((i / 47) * (x + i))),"dmnd")
    end
    end
    end

     

    This script just generates a 3-D sine wave in which, if viewed from above, all points would be pixels away from each other.

     

     

  • cyberdragon
    4th Jun 2013 Member 0 Permalink

    ?!?!?!? Sound?

  • FeynmanLogomaker
    5th Jun 2013 Member 0 Permalink

    Lol no, just a picture.

  • therocketeer
    5th Jun 2013 Member 0 Permalink
  • lapuminator
    8th Jun 2013 Member 0 Permalink

    @FeynmanLogomaker!

     WOW! Impressive... short and sweet. I Like.