I extended the line clamping to do iso pixelart. However I only managed to find the equation for the 3 others. Maybe someone is better at geometry. I let the unequationed lines move free when you press shift. The limit between each spot can also be adjusted. Is someone better than me at math around here ?
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@894 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
@@ -39,7 +39,8 @@
|
||||
#define M_PI 3.14159265358979323846
|
||||
#endif
|
||||
|
||||
/// Time (in SDL ticks) when the next airbrush drawing should be done. Also used for discontinuous freehand drawing.
|
||||
/// Time (in SDL ticks) when the next airbrush drawing should be done. Also used
|
||||
/// for discontinuous freehand drawing.
|
||||
Uint32 Airbrush_next_time;
|
||||
|
||||
void Start_operation_stack(word new_operation)
|
||||
@@ -482,7 +483,8 @@ void Line_12_5(void)
|
||||
//
|
||||
// Souris effacée: Non
|
||||
|
||||
// Poursuite du tracé d'une ligne (déplacement de la souris en gardant le curseur appuyé)
|
||||
// Poursuite du tracé d'une ligne (déplacement de la souris en gardant le
|
||||
// curseur appuyé)
|
||||
{
|
||||
short start_x;
|
||||
short start_y;
|
||||
|
||||
Reference in New Issue
Block a user