pen-tablet

Drawing varying line widths with NSBezierPath?

雨燕双飞 提交于 2020-07-18 05:16:33
问题 I would like to create a vector object that can be drawn with a pen tablet and will honor the pressure information from the pen (by increasing/decreasing line width appropriately). Now I know how to get the pressure info out of the NSEvent, but of course NSBezierPath doesn't support varying line widths. So I'm trying to generate a Bezier path that is the outline of my line, by calculating the perpendicular lines at the ends of the curve and connecting those with the very same curve. It nearly

is there an API for python to work with pressure-sensitive pen-tablets? (Mac OS, Linux)

浪尽此生 提交于 2020-01-03 05:14:12
问题 I want to write a cross-platform wxPython app, and I'm wondering if there a single API to work with pen-tablets on different platforms? I'm only interested to get pressure value and ereaser flag - but I couldn't fined anything cross-platform for python. UPD. so far, I found only windows-specific solution, what are the options for Mac OS and Linux? 回答1: https://bitbucket.org/AnomalousUnderdog/pythonmactabletlib A small Python library to allow Python scripts to access pen tablet input data in

Can I recognise (graphic tablet) Pen Pressure in Javascript?

自作多情 提交于 2019-12-20 10:25:34
问题 Is there any way to recognise pen pressure using javascript. Preferably I don't want to make any use of Flash and try get this done as pure JS. EDIT: okay I realised that it is kind of possible for Wacom tablets as they come with software that can work with their javascript api to make it possible (demos). But it's no good for people with Trust tablets or any other brand... So no good really. Any body know how to do it in C# if not JS? 回答1: Yes - if the user has a Wacom tablet installed, then

Can I recognise (graphic tablet) Pen Pressure in Javascript?

China☆狼群 提交于 2019-12-02 21:13:14
Is there any way to recognise pen pressure using javascript. Preferably I don't want to make any use of Flash and try get this done as pure JS. EDIT: okay I realised that it is kind of possible for Wacom tablets as they come with software that can work with their javascript api to make it possible ( demos ). But it's no good for people with Trust tablets or any other brand... So no good really. Any body know how to do it in C# if not JS? Yes - if the user has a Wacom tablet installed, then their browser will have a plugin for it that you can access. http://www.wacomeng.com/web/index.html