hubFS: THE place for F#

. . . are you on The Hub?
Welcome to hubFS: THE place for F# Sign in | Join | Help

Ripple Delight

Page 3 of 9 (9 items)  < Previous 1 2 3 4 5 Next > ... Last »
 
Ripple Delight
View Sizes View Details
    No EXIF data is available

This is a time-varying rippling surface using the following simple F# code - it's an exponential rotated around (0.5,0.5)

let ripple t (x,y) =
 
let x,y = x - 0.5,y - 0.5 in
 
let r = sqrt (x*x + y*y) in
 
exp(-4.0 * r) * sin(6.0 * 3.14 * r + t) + 0.5

do ff := ripple

 

Comments

No comments
add comment

Albums

more expected settings in VS2005

9 total photos
Last updated on 12/5/2006

Statistics

Posted By: dsyme
Viewed: 18902
Comments: 0
Ratings: 0 vote(s)
Rating

This Gallery

Powered by Community Server, by Telligent Systems