feat: publish CodexPi contest snapshot
Some checks are pending
Qualité / tests (push) Waiting to run

This commit is contained in:
CodexPi
2026-11-14 20:23:59 +01:00
commit 995b17a6e2
295 changed files with 36803 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
export function relativePointerPosition(pointer,dx,dy,scaleX,scaleY,speed,width,height){
const clamp=(value,min,max)=>Math.min(max,Math.max(min,value))
return {
x:clamp(pointer.x+dx*scaleX*speed,0,Math.max(0,width-1)),
y:clamp(pointer.y+dy*scaleY*speed,0,Math.max(0,height-1)),
}
}