1. A method, comprising: using a computer to perform: collecting information about a user manipulation of a stylus in relation to a tablet device associated with the computer; recognizing, from the collected information, a stylus gesture performed by the user via manipulation of the stylus, such that: the stylus gesture is one of a plurality of stylus gestures that are recognized by the computer to perform at least one of a plurality of actions in a graphics application that comprises a natural media painting application, at least some of the stylus gestures are mapped to user manipulation of the stylus at a distance from the tablet device, at least some of the stylus gestures involve contact of the stylus with the tablet device, and the stylus gestures include a brush switching gesture in which a proximity of the stylus to the tablet changes from a first position relative to the tablet to a second position that is further away from the tablet and with at least a rate of change that corresponds to the brush switching gesture, the first position being within a first pre-defined distance threshold relative the tablet and the second position being beyond a second pre-defined distance threshold, and switching between paintbrushes of a brush tool being performed responsive to recognition of the brush switching gesture; determining which of the plurality of actions to perform based on the recognized stylus gesture; and performing a painting function for a digital image in the graphics application including performing the determined actions.
1. A method, comprising: using a computer to perform: collecting information about a user manipulation of a stylus in relation to a tablet device associated with the computer; recognizing, from the collected information, a stylus gesture performed by the user via manipulation of the stylus, such that: the stylus gesture is one of a plurality of stylus gestures that are recognized by the computer to perform at least one of a plurality of actions in a graphics application that comprises a natural media painting application, at least some of the stylus gestures are mapped to user manipulation of the stylus at a distance from the tablet device, at least some of the stylus gestures involve contact of the stylus with the tablet device, and the stylus gestures include a brush switching gesture in which a proximity of the stylus to the tablet changes from a first position relative to the tablet to a second position that is further away from the tablet and with at least a rate of change that corresponds to the brush switching gesture, the first position being within a first pre-defined distance threshold relative the tablet and the second position being beyond a second pre-defined distance threshold, and switching between paintbrushes of a brush tool being performed responsive to recognition of the brush switching gesture; determining which of the plurality of actions to perform based on the recognized stylus gesture; and performing a painting function for a digital image in the graphics application including performing the determined actions. 10. The method of claim 1 , wherein the collected information includes acceleration data that is collected using an accelerometer of the stylus to augment other collected information, the acceleration data being usable to determine the rate of change for proximity changes of the stylus between the first position and the second position.