Reaction Time
Test your visual reflexes.
How to play
1. Click start.
2. Wait for the red screen to turn green.
3. Click as fast as you can.
This page runs a two-colour visual reaction test. The full-screen panel turns red, and the moment it turns green the clock starts; the trial ends when the mouse goes down, and the gap is rounded to whole milliseconds. The measurement is entirely local. Everything else is deliberately thin. The panel waits a random 2 to just under 5 seconds before the green, so a round won by guessing is one you will usually lose. The game keeps a single number about you, your fastest valid attempt, in this browser's local storage. No account, no round counter, no session average.
The game stores one thing on your device: a localStorage entry named reaction-highscore holding your fastest time in milliseconds. There is no account and no server-side record of your results. Each round is also reported as an anonymous usage event carrying the time.
- Press Start Game on the idle screen. The panel turns red and the wait timer starts from that click.
- Do nothing while it is red. The green lands between 2,000 and 4,999 ms after the round began.
- Press the mouse the instant the panel turns green. The clock stops on mouse-down, not on release.
- The panel turns blue and prints your time in large monospace digits with an ms suffix.
- Beat the badge in the top-right corner and the new best is written to storage and shown at once.
- Click anywhere on the blue screen to roll another round. A new wait is drawn and the old time disappears.
- Main Menu returns to the idle screen, cancelling any pending wait but leaving your stored best alone.
- Guess less, watch more. The wait is redrawn from 2.0 to 4.999 s each round, so a fixed click at 3,500 ms false-starts half the time.
- The trigger is a full-bleed colour change, not a small icon. Watch the red field turn green instead of hunting the panel.
- Park the pointer before the round starts. Any mouse-down during the red phase is a false start, even one made while repositioning.
- Finish the round cleanly. The result is stored the moment you click, so a late release cannot spoil it.
- A false start costs nothing but the round. The timer is cancelled, no time is recorded and your best is untouched.
- Compare sessions, not rounds. The badge holds your single best, so a slow morning shows the old number until you beat it.
- Change one variable at a time. Switching between mouse and touchscreen moves the result by tens of milliseconds.
Five states, five colours
Idle (slate), waiting (red), ready (green), result (blue), early (orange). The colour covers the whole viewport with a 200 ms transition, so the cue is a field of colour, not a widget.
The randomised wait
Each round computes Math.floor(Math.random() * 3000) + 2000, an integer from 2,000 to 4,999 ms, and arms a setTimeout. The draw happens when the round starts, not when the green appears.
Where the clock runs
The start stamp comes from performance.now(), a monotonic clock, inside the timer callback. The end stamp is taken the same way in the mouse-down handler, then rounded to a whole millisecond.
The clock runs before the pixels do
The start stamp is written in the same tick the green state is scheduled, while the red screen is still fading out. You are measured against a cue that becomes visible after the clock started, which flatters the result.
A false start voids the round
A mouse-down during the red phase clears the pending timeout before the orange Too Soon screen appears. The green can never arrive on that round, and neither the score nor the stored best changes.
One trial per round
The score holds a single measurement, overwritten each time you begin another round. The panel shows the last trial, never a total, an average or a round number.
- Start Game
- Begins the first round and arms the 2,000 to 4,999 ms wait.
- Mouse-down, red
- False start. Cancels the pending timer and shows Too Soon.
- Mouse-down, green
- Stops the clock and prints your time in ms.
- Mouse-down, blue
- Starts the next round with a fresh wait.
- Mouse-down, orange
- Starts the next round too.
- Main Menu
- Back to the idle screen, pending wait cancelled.
- Trophy badge
- Read-only. Shows your stored best in ms.
- Axonix Tools link
- Opens the site homepage.
- Keyboard
- Only the two buttons respond. The trial itself needs a mouse-down.
- Trial measured
- One mouse-down after the green, minus the stamp taken when it was armed, rounded to whole milliseconds.
- Average
- Not computed. The panel holds one trial, and each new round overwrites the last.
- Personal best
- The fastest valid trial recorded in this browser, updated the moment you beat it.
- Storage
- localStorage key reaction-highscore, a plain string of milliseconds read back on page load.
- Lifetime
- It survives reloads, tab closes and restarts, is per browser and device, and is never synced to an account.
- False start
- Records nothing: no time, no penalty, no change to the best.
Anchor to the colour, not to a count
The delay is redrawn every round, so no fixed moment is safe. Watch the field of colour and move only after the green appears. Motion during the red phase wastes the round.
Park the pointer before you start
The handler is bound to mouse-down on the whole panel, so any press in the window counts. Resting the pointer in one spot removes the repositioning behind most accidental presses.
Read the number, not the feeling
The game keeps only your fastest attempt and shows no average, so quick rounds and one slow round look identical. Keep your own list if consistency is the goal.
Hold the environment still
The measurement is local, so no network lag is in the way, but hardware lag is. Same mouse, same screen, same time of day. Switching input devices mid-session adds tens of milliseconds.
- Reaction time
- The gap between stimulus and response: whole milliseconds from green to mouse-down.
- Stimulus
- The cue asking for a response: the full-screen switch from red to green.
- Pre-stimulus wait
- The randomised 2,000 to 4,999 ms gap between the start of a round and the stimulus.
- False start
- A mouse-down before the green. It cancels the round and shows the orange Too Soon screen.
- Trial
- One measured response. The game records one per round and keeps only the fastest.
- Personal best
- The lowest valid trial stored for this browser, under the localStorage key reaction-highscore.
- Anticipation
- Clicking because the green is expected rather than seen. Against a random wait it ends as a false start.