Add a raw line-coordinate output mode #2

Merged
Darks merged 1 commits from :master into master 2019-09-05 18:24:30 +02:00
Contributor

Sometimes I need a decently smart line-based drawing algorithm for an image outside the context of CASIO Basic.

This change adds a raw output mode (-r, --raw) that prints space-separated line coordinates in the (x1 y1 x2 y2) order on stdout rather the CASIO Basic code.

Sample output :

% ./sprite-optimizer.py -r drak.png
16 26 30 25
7 10 7 21
11 21 11 11
5 20 5 11
17 24 23 16
14 2 22 3
0 11 1 19
31 11 31 18
20 15 14 22
8 14 10 21
11 25 21 27
24 5 26 11
... 73 lines total
Sometimes I need a decently smart line-based drawing algorithm for an image outside the context of CASIO Basic. This change adds a raw output mode (`-r`, `--raw`) that prints space-separated line coordinates in the (x1 y1 x2 y2) order on stdout rather the CASIO Basic code. Sample output : ```text % ./sprite-optimizer.py -r drak.png 16 26 30 25 7 10 7 21 11 21 11 11 5 20 5 11 17 24 23 16 14 2 22 3 0 11 1 19 31 11 31 18 20 15 14 22 8 14 10 21 11 25 21 27 24 5 26 11 ... 73 lines total ```
Darks closed this pull request 2019-09-05 18:24:30 +02:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Darks/sprite-optimizer#2
No description provided.