Commit graph

11 commits

Author SHA1 Message Date
Bill Kendrick
2fb0d2693a N-pt persp: Shrink line thickness 2023-12-22 15:19:46 -08:00
Bill Kendrick
b20b4531c4 2-pt persp: mend vertical line direction flip 2023-12-22 01:38:33 -08:00
Bill Kendrick
86affde29f 2-pt persp: better guides 2023-12-22 01:21:28 -08:00
Bill Kendrick
5771e8aa8c 1- & 2-pt persp.: Drag can position vanishing point 2023-12-22 00:45:56 -08:00
Bill Kendrick
9cc4e80d98 2-pt perspective -- add more guides 2023-12-21 12:07:55 -08:00
Bill Kendrick
05b76c8b5f 2-point perspective via angles
Rather than using straight horizontal & vertical, it now snaps
to lines with the same slope as the two vanishing points
(the horizon chosen by the user), and lines perpendicular to that.

Note - Still need guides during drag.  Also, there's a bug when
calculating slope that causes the line to go way off in the
opposite direction, which needs addressing.
2023-12-21 02:22:07 -08:00
Bill Kendrick
e9db3d2393 N-point perspective: Use Magic API's pixel XOR 2023-12-21 00:36:48 -08:00
Bill Kendrick
a72e5b9b42 WIP 2-point perspective
Works okay assuming vanishing points form a horizontal line,
but that won't always be the case.
2023-12-21 00:32:03 -08:00
Bill Kendrick
648c6d8974 n_pt_persp.c -- address all compiler warnings
...unused parameters, undeclared function prototypes, etc.
2023-12-17 10:45:32 -08:00
Bill Kendrick
99e129005e More work on 1-point perspective Magic tool 2023-12-15 00:24:17 -08:00
Bill Kendrick
940132c30f WIP 1-point perspective (vanishing point) Magic tool 2023-12-14 22:12:29 -08:00