You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Blob.animatedRandom() - Generate blobs and animate the shape change
Blob.fromHash() - Use one or more hash ID's for fixed blobs
Blob.animatedFromHash() - Animate the shape change
Blobs and animations are configurable.
Blob Size
Size of the blob. It is mandatory.
Blob.random(size:200),
Blob shape settings
edgesCount is the nodes count. Minimum is3 and max is300. But for cool shapes you can stick between3-20. Default is7minGrowth is the minimum size of the blob. Value should be an interger between2-9. Default is4.
You can useBlobController, if you want to change the shape programatically. As of. now it has only one method calledchange(). When you call this, the shape will be changed and returns some useful data of the blob (BlobData).
In most scenarios you wanted a same blob to be loaded every time. This can be achieved using hash. Hash is just a ID, which contains the shape data. You can get the hash id from theblobData from the controller'schange() method.
Blobs app is in progress. Once it is ready, you will be able to generate and get the hash ID from that app.
Hash id looks likeH4sIANhSwV4A/w3LsQ0AMQgEwYY24A5koBbr+2/jnY40NzdxBD7GPagXrznzKKlFbjSBJDKKs9QLE98PNkNQxj0AAAA=
hash option accepts one or multiple id's. If it has only one hash, then it will be a fixed blob.
When you setdebug to true, it will show you circles and lines that connect the blob points.
Blob.random( size:200, debug:true,),
Clipper
Sometime you. might want to clip the widget by blob shape. In such cases you can useBlobClipper(). You can either providehash oredgesCount andminGrowth options.
Blobs shape are created byBlobGenerator(). Both widgets and clipper uses this internally to create the shape and then it is painted to canvas. This will returnBlobData.