Add basic tiled rendering
This commit is contained in:
parent
854e5a55a1
commit
edffd22c2e
26 changed files with 350 additions and 167 deletions
|
|
@ -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));
|
||||
|
|
|
|||
2
frontend/src/scripts/helper/mix.ts
Normal file
2
frontend/src/scripts/helper/mix.ts
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
export const mix = (from: number, to: number, q: number) =>
|
||||
from + (to - from) * q;
|
||||
Loading…
Add table
Add a link
Reference in a new issue