ApoorvaJ / Papaya

A GPU-powered image editor (in the making)
MIT License
374 stars 33 forks source link

Add straight line drawing. #21

Closed GreenLightning closed 8 years ago

GreenLightning commented 8 years ago

Add shift+clicking for drawing arbitrary straight line segments and shift+dragging during a brush stroke for horizontal and vertical lines.

Note that for shift+dragging I modify Mouse.UV and Mouse.Pos and call Platform::SetMousePosition, so that the cursor does not move away from the line.

Implements #10 except for the undo integration for arbitrary straight lines.

ApoorvaJ commented 8 years ago

This was awesome. Thanks a lot!