Add basic tiled rendering

This commit is contained in:
schmelczerandras 2020-07-27 22:53:17 +02:00
parent 854e5a55a1
commit edffd22c2e
26 changed files with 350 additions and 167 deletions

View file

@ -1,4 +1,5 @@
export const clamp = (value: number, min: number, max: number): number =>
Math.min(max, Math.max(min, value));
export const clamp01 = (value: number): number => clamp(value, 0, 1);
export const clamp01 = (value: number): number =>
Math.min(1, Math.max(0, value));

View file

@ -0,0 +1,2 @@
export const mix = (from: number, to: number, q: number) =>
from + (to - from) * q;