---
id: tween-progress
name: Tween.progress
category: tween
kind: namespace-method
tokens: Tween.progress
sig: Tween.progress(timer, duration) -> fixed
tip: A one-shot 0..1 amount, clamped, for timer over duration.
order: 1
ns: Tween
member: progress
---
Returns timer / duration clamped to 0.0..1.0 — the normalized progress of a one-shot tween. Feed it to Tween.ease to shape it, then to a typed blend. Once timer reaches duration it pins at 1.0 (a non-positive duration also reads as done).
Parameters:
- `timer` — elapsed seconds (a `fixed`)
- `duration` — the tween's length in seconds (a `fixed`)
```ludic
program Demo {
property Fade { timer: fixed = 0.0 }
model Panel { Fade }
handler Run phase Update {
Fade.timer = Fade.timer + Time.delta()
let t = Tween.progress(Fade.timer, fixed(1))
let a = Tween.round(0, 255, Tween.ease(t, 2))
print(a)
}
}
```