The MASM Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
MASM32 Downloads
Home
Help
Search
Login
Register
The MASM Forum
»
General
»
The Laboratory
»
Magic Wand
« previous
next »
Print
Pages: [
1
]
Author
Topic: Magic Wand (Read 1892 times)
guga
Member
Posts: 1451
Assembly is a state of art.
Magic Wand
«
on:
March 27, 2019, 03:56:46 AM »
Hi guys
how to create a magic wand for selecting a certain range of colors like the ones existent in PaintShopPro ?
Logged
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
Member
Posts: 13657
Assembly is fun ;-)
Re: Magic Wand
«
Reply #1 on:
March 27, 2019, 04:32:10 AM »
- 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
Logged
Masm32 Tips, Tricks and Traps
Print
Pages: [
1
]
« previous
next »
The MASM Forum
»
General
»
The Laboratory
»
Magic Wand