[Tyler Leisher] “is there anyway to set a max position or a frame for the wiggle to work around in?”
The maximum and minimum variation to the position is the amplitude of the wiggle, if you look at the structure of the function:
wiggle(frequency, amplitude);
wiggle() will modify the input (in your case position) by -amplitude to amplitude in both dimensions… So if you apply:
wiggle(1, 100);
To a position of [360,240] then your minimum position will be [260, 140] and your maximum will be [460, 340]. If you don’t want your ‘frame’ to be a square then you need to apply separate wiggles to the X and Y dimensions:
x = wiggle(1, 200)[0];
y = wiggle(1, 100)[1];
[x,y]
The above would wiggle the value by -200 to 200 in the X dimension and -100 to 100 in the Y dimension.
Darby Edelen
Designer
Left Coast Digital
Santa Cruz, CA