News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Magic Wand

Started by guga, March 27, 2019, 03:56:46 AM

Previous topic - Next topic

guga

Hi guys


how to create a magic wand for selecting a certain range of colors like the ones existent in PaintShopPro ?
Coding in Assembly requires a mix of:
80% of brain, passion, intuition, creativity
10% of programming skills
10% of alcoholic levels in your blood.

My Code Sites:
http://rosasm.freeforums.org
http://winasm.tripod.com

jj2007

- take the rgb val of the starting point as the reference
- define R+-X, G+-X, B+-X
- go left & right until you reach a point that is not inside the tolerance
etc