OZONE Asylum
Forums
DHTML/Javascript
imageData test for yellow tones and orange tones
This page's ID:
31476
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
I'm using a function that gets the pixel color of the mouse coords on the canvas and switches the opacity on colors that are within a sensitivity range. The problem I have is I need to figure a better way to apply the sensitivity based on what color the mouse is on. http://www.hardwoodfloorspdx.com/misc/javascript/canvas/test/mouse.html I'm wondering if anyone has ever had to solve this problem before and has some insight. I used paint.net to mess with the original image, which is from Open Street. I made the orange into red to make the script work the way I would like orange to work. The problem with the original image was only the exact color will highlight. http://mobilegeo.wordpress.com/ My fix has both yellow and orange highlighting together if I added a large sensitivity but only partial orange colors would highlight if it was small sensitivity. I really want to figure out is a way to change all the pixels near a certain color into the that color. For example, change all orangish colors into orange and all yellowish colors into yellow. Can anyone recommend a method to do this? It has to have been done? No?
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »