Users browsing this thread: 2 Guest(s)
Palette changer tools?
#42
I've... been having shortcuts since forever?



This is how I do it:

Start with minimal X and maximalX equal to clicked X, minimal Y and maximal Y equal to clicked Y.

Until a turn passes without any size change,
- assume no changes will occur
- Iterare over the current width (minimal X to maximal X),
-- check each column up and down if the next pixel is of the background colour - if not, adjust minimal and maximal Y values (take a note that a change occured)
- Iterare over the current height (minimal Y to maximal Y),
-- check each row left and right if the next pixel is of the background colour - if not, adjust minimal and maximal X values (take a note that a change occured)

Hope this helps?
Thanked by:


Messages In This Thread
Palette changer tools? - by Davy Jones - 07-24-2012, 09:25 AM
RE: Palette changer tools? - by Goemar - 07-24-2012, 09:39 AM
RE: Palette changer tools? - by Davy Jones - 07-24-2012, 10:14 AM
RE: Palette changer tools? - by puggsoy - 07-24-2012, 10:20 AM
RE: Palette changer tools? - by Previous - 07-24-2012, 11:12 AM
RE: Palette changer tools? - by Davy Jones - 07-24-2012, 12:07 PM
RE: Palette changer tools? - by puggsoy - 07-24-2012, 03:32 PM
RE: Palette changer tools? - by Goemar - 07-25-2012, 08:06 AM
RE: Palette changer tools? - by puggsoy - 07-25-2012, 08:36 AM
RE: Palette changer tools? - by Previous - 07-25-2012, 01:54 PM
RE: Palette changer tools? - by puggsoy - 07-25-2012, 03:20 PM
RE: Palette changer tools? - by Previous - 07-25-2012, 03:44 PM
RE: Palette changer tools? - by puggsoy - 07-25-2012, 03:50 PM
RE: Palette changer tools? - by Previous - 07-25-2012, 03:56 PM
RE: Palette changer tools? - by Davy Jones - 07-28-2012, 07:39 AM
RE: Palette changer tools? - by puggsoy - 07-28-2012, 05:43 PM
RE: Palette changer tools? - by Previous - 07-28-2012, 07:45 PM
RE: Palette changer tools? - by Davy Jones - 07-29-2012, 01:27 PM
RE: Palette changer tools? - by Previous - 07-29-2012, 01:40 PM
RE: Palette changer tools? - by Davy Jones - 07-29-2012, 03:26 PM
RE: Palette changer tools? - by puggsoy - 07-29-2012, 02:57 PM
RE: Palette changer tools? - by puggsoy - 07-29-2012, 04:01 PM
RE: Palette changer tools? - by Previous - 07-29-2012, 04:32 PM
RE: Palette changer tools? - by Davy Jones - 07-29-2012, 05:07 PM
RE: Palette changer tools? - by Goemar - 07-29-2012, 05:35 PM
RE: Palette changer tools? - by Previous - 07-29-2012, 05:53 PM
RE: Palette changer tools? - by puggsoy - 07-29-2012, 06:04 PM
RE: Palette changer tools? - by puggsoy - 07-30-2012, 04:09 PM
RE: Palette changer tools? - by Previous - 08-06-2012, 05:10 AM
RE: Palette changer tools? - by puggsoy - 08-06-2012, 05:45 AM
RE: Palette changer tools? - by Davy Jones - 09-09-2012, 12:53 PM
RE: Palette changer tools? - by Previous - 09-09-2012, 01:11 PM
RE: Palette changer tools? - by Davy Jones - 09-09-2012, 01:18 PM
RE: Palette changer tools? - by Previous - 09-09-2012, 01:22 PM
RE: Palette changer tools? - by Vipershark - 09-10-2012, 05:36 PM
RE: Palette changer tools? - by puggsoy - 09-15-2012, 02:32 PM
RE: Palette changer tools? - by Previous - 09-15-2012, 04:21 PM
RE: Palette changer tools? - by puggsoy - 09-15-2012, 04:55 PM
RE: Palette changer tools? - by Previous - 09-15-2012, 04:58 PM
RE: Palette changer tools? - by Previous - 09-16-2012, 06:48 AM
RE: Palette changer tools? - by puggsoy - 09-16-2012, 08:18 AM
RE: Palette changer tools? - by Previous - 09-16-2012, 08:58 AM
RE: Palette changer tools? - by puggsoy - 09-16-2012, 11:21 AM
RE: Palette changer tools? - by Previous - 09-16-2012, 11:32 AM
RE: Palette changer tools? - by Davy Jones - 02-07-2013, 07:51 PM

Forum Jump: