Skip to content

Pen

Overview

Tracks a stylus ('pen') or something with tilt and pressure information

@author Jonathan Olson <jonathan.olson@colorado.edu>

Class Pen

import { Pen } from 'scenerystack/scenery';

Constructor

new Pen( id : number, point : Vector2, event : Event )

Instance Methods

toString() : string

Returns an improved string representation of this object.

isTouchLike() : boolean

Instance Properties

id : number

For tracking which pen is which

Source Code

See the source for Pen.ts in the scenery repository.