Shortcut | Description |
---|---|
<C-r><C-w> |
Insert current word into the command line |
<C-r>\" |
Paste from " register |
<C-x><C-f> |
Auto-completion of path in insert mode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class Fish { | |
constructor() { | |
this.pos = createVector(R.random_num(0, W), R.random_num(0, H)); // Position vector of fish | |
this.poi = createVector(0, 0); // Position vector of interest | |
this.vel = createVector(R.random_dec() * M, R.random_dec() * M); // initialize velocity in unit vector | |
this.facing = this.vel.heading() // facing of fish | |
this.speed = R.random_num(0.3, 1) * M; // magnitude to scale vel | |
this.maxTurn = PI / R.random_int(512, 1024); | |
this.fl = round(R.random_int(175, 225) * M); | |
this.laziness = R.random_int(1, 1000); |
OlderNewer