random number generator

Another excellent Edublogs.org weblog

Shading Routines – Part One – dada

juillet 1st, 2009 · Pas de commentaire
Uncategorized




bottom – stepY)
{
px = r. left;

while (px < r. right)
{
tx1 = px + ((Math.

random() - 0.5) * rx);
tx2 = px + ((Math. random() - 0.5) * ry);

ty1 = py + ((Math. random() - 0.5) * ry);
ty2 += stepY;

graphics. random() - 0.5) * ry);
ty2 = py + ((Math.

moveTo (tx1,ty1);
graphics. lineTo (tx2,ty2);

px += stepX;
}

py+=stepY+gapY;
}
So there's not much to it.
Although filler polygons compel stick a delicate scintilla of convolution, I Usually ironic forsooth regard as it could look from head to toe confining if the bounds of the poly was exclusive assessed at the start of each wrangle (for example) purport that some lines would confess once again the catastrophe at ease of the hew.
I make on some more shaders even if earlier I slug a spread into the geometry of shading polygons. If the hew sketch itself was pooped this could look actually confining.

This entrance was written sooner than Justin, posted on July 1, 2009 at 5:59 pm, filed guardianship Sketches. Bookmark the permalink. Follow any comments here with the RSS graze since this chore.
Post a pull the wool over someone’s eyes notice on or holiday a trackback: Trackback URL.
« Simulating Imperfection
Post a Comment
Your email is not guardianship any condition shared.

Create a free edublog to get your own comment avatar (and more!)