- field(vectfield, config): number[][]
Parameters
config: {
context: CanvasRenderingContext2D;
domain: [[number, number], [number, number]];
lineWidth: number;
res: number;
size: number;
strokeStyle: string;
x: number;
y: number;
}
context: CanvasRenderingContext2D
domain: [[number, number], [number, number]]
lineWidth: number
res: number
size: number
strokeStyle: string
x: number
y: number
Returns number[][]
Plots a 2D vector field.