Is it possible to draw smooth like this in Corona?

UL1UP.png

I would think so, but you would have to pass all the points to Corona.

You can use PhysicsEditor software to get the points directly from that image…

http://www.codeandweb.com/physicseditor

I would think so, but you would have to pass all the points to Corona.

You can use PhysicsEditor software to get the points directly from that image…

http://www.codeandweb.com/physicseditor

up

Those strokes clearly display pressure sensitivity, so to that I would have to say no.

I suppose it’s technically “possible” but you’d need to gather all of the points along the line, then draw a separate line object from point to point, and each successive line from the starting point would need to have a slightly smaller stroke width. Even that may not be too effective, since subtle fractional stroke widths may get rounded up/down to the next pixel integer value. For example, if you had two segments with stroke widths of 1.2 and 1.22, they might both just round down to 1, thus defeating the “tapered” appearance. I guess you could opt for an extremely large content area, but it might still not look perfect.

Atop this, how would you detect pressure sensitivity? Corona does not have support for detecting pressure levels of pressure-senstive styluses like the Adonit Jot Pro, so I’m not sure how you’d achieve any real representation of that in your app.

Best regards,

Brent

The pressure sensitivity can be emulated by detecting speed. Fast motion will produce thinner lines, slower motion thicker lines.

It’s possible but will take a bit of planning before creating such a “stroke library”.

up

Those strokes clearly display pressure sensitivity, so to that I would have to say no.

I suppose it’s technically “possible” but you’d need to gather all of the points along the line, then draw a separate line object from point to point, and each successive line from the starting point would need to have a slightly smaller stroke width. Even that may not be too effective, since subtle fractional stroke widths may get rounded up/down to the next pixel integer value. For example, if you had two segments with stroke widths of 1.2 and 1.22, they might both just round down to 1, thus defeating the “tapered” appearance. I guess you could opt for an extremely large content area, but it might still not look perfect.

Atop this, how would you detect pressure sensitivity? Corona does not have support for detecting pressure levels of pressure-senstive styluses like the Adonit Jot Pro, so I’m not sure how you’d achieve any real representation of that in your app.

Best regards,

Brent

The pressure sensitivity can be emulated by detecting speed. Fast motion will produce thinner lines, slower motion thicker lines.

It’s possible but will take a bit of planning before creating such a “stroke library”.