This commit is contained in:
parent
a93ba30322
commit
790b1352fe
1 changed files with 6033 additions and 22226 deletions
|
|
@ -9,7 +9,10 @@ export class Metaball {
|
|||
|
||||
private direction = Random.getRandom() > 0.5 ? 1 : -1;
|
||||
private speed = Random.getRandomInRange(0.5, 2);
|
||||
constructor(private readonly center: vec2, private readonly size: vec2) {}
|
||||
constructor(
|
||||
private readonly center: vec2,
|
||||
private readonly size: vec2
|
||||
) {}
|
||||
|
||||
public animate(currentTime: DOMHighResTimeStamp, width: number, height: number) {
|
||||
vec2.set(
|
||||
|
|
|
|||
Loading…
Reference in a new issue