Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
sygad1

Random numbers for polygon point animation

Recommended Posts

Hi All,

 

I'm trying to create a continuously changing polygon animation that uses randomly generated values for the points.

 

I've got it working for the 1st set of generated numbers, but it doesn't use the subsequent set of values.

 

It keeps repeating between the initial shape points and the 1st set of generated points.

 

Any ideas on how to "refresh" the points so it can constantly change the shape of the polygon

 

Cheers

See the Pen ZydmKV by sygad1 (@sygad1) on CodePen

Link to post
Share on other sites

It is indeed.


Thank you very much

 

I can see me having lots of fun with this and an equal amount of frustration as I learn something this massive ;-)

 

Cheers

  • Like 4
Link to post
Share on other sites

@OSUblake thank you for that, very interesting way of doing it and actually a lot closer to what I had in mind from a finished visual. The offset is an idea I have been bouncing around to limit the amount of movement and it helps to keep it close to the original shape without it collapsing too heavily onto itself.

 

 

  • Like 1
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×