Stylus & Pen Pressure Tester

Stylus Pressure Tester Guide

How pressure/tilt data is read, and how to fix a pen or drawing tablet that isn't reporting it correctly.

How It Works

Every stroke you draw fires Pointer Events (pointerdown, pointermove, pointerup) that carry, alongside x/y position, a pressure value from 0 to 1, tiltX/tiltY in degrees, a twist rotation value, and a contact width/height - all reported directly by your operating system's digitizer driver through the browser. This tool reads those fields live on every event and mirrors pressure into the line width and opacity of the stroke you're drawing, so you can both see and feel the response.

A device that has no real pressure sensor - a mouse, most touchscreens without an active pen - still fires these events, but with fixed placeholder values (typically 0.5 while a button/finger is down, 0 when not) rather than a value that actually varies with how hard you press.

Pressure Not Working?

If you see...Likely cause
Pressure stays fixed at 0.50 no matter how hard you pressTablet driver isn't installed/running, or Pointer Type shows "mouse" instead of "pen" - the OS isn't recognizing it as a pressure device
Pointer Type shows "touch" instead of "pen"Your finger or a non-pressure stylus is being used - only an active pen (Apple Pencil, Surface Pen, most tablet styluses) reports real pressure
Tilt X/Y always read 0°Your pen/tablet combination doesn't support tilt reporting - not every pen does, even ones with real pressure
Nothing draws at all on the canvasThe pen may need to be paired/awake first - tap it on the tablet surface once before drawing

Frequently Asked Questions

What does the "twist" value measure, and which pens support it?

Twist reports the rotation of the pen barrel around its own axis, in degrees. It's a niche feature that most consumer styluses don't report at all - it just stays at 0° - and is used mainly by specialized pens for effects like calligraphy brush rotation.

What do the contact width and height values represent?

They estimate the physical contact area's footprint in pixels, which mostly matters for touch input, where a fingertip flattens over a larger area than a pen tip. True pen input usually reports a small, fairly fixed contact size since a pen tip touches close to a single point.

Why does the tool lock pointer events to the canvas while you draw?

It uses setPointerCapture so all subsequent events from that pen or finger keep targeting the canvas even if it briefly moves outside its boundaries mid-stroke. Without that, a fast stroke that leaves the canvas area for an instant could cut the line short or drop events.

How does the tool tell the eraser end of a pen apart from the tip?

Through the buttons bitmask on the pointer event - a value of 32 corresponds specifically to a pen's eraser end being pressed (on pens that have one), separate from the bit that indicates the primary tip.

Do all pressure-sensitive pens report the same fineness of pressure detail?

No. The browser always normalizes pressure to a 0-to-1 range, but the number of distinct pressure levels the underlying hardware can actually distinguish varies by device - commonly 1024, 2048, 4096, or 8192 levels - so two pens can both feel smooth while differing in fine sensitivity.

Open Pressure Tester