Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] View of /branches/vis12/test/triv.diderot
ViewVC logotype

View of /branches/vis12/test/triv.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3191 - (download) (annotate)
Sat Apr 4 00:33:02 2015 UTC (4 years, 3 months ago) by jhr
File size: 378 byte(s)
  added "continue" statement inside the update method.  The effect is to exit
  the method, but to leave the strand active (unlike die and stabilize).
// triv.diderot
//

real x = 2.0;

strand RayCast (int r, int c)
{
    real t = 0.0;
    real s = t + 2.0;
    output real y = 1.0;
    output real z = exp(1.5);
    output real w = erf(z);

    update
    {
	t = t + 0.1 * (r+c);
	if (t <= 20.0)
	    continue;
        stabilize;
    }

    /* render: output maxval */
}

initially [ RayCast(r, c) | r in 0..199, c in 0..199 ];

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0