/    Sign up×
Community /Pin to ProfileBookmark

changing the Hue of a graphic in runtime

Hi people

I have a graphic which has a specific Hue.
I would like to allow users who have IE to change the Hue of that graphic by picking it from a combo-box

Is there a way to change the Hue of a graphic in runtime by changing CSS filters or by some other technique?

regards

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@TheBearMaySep 21.2006 — Can't think of a way to directly change it, but you could overlay the image with a colored division of the same size set to about 50% opacity .

[code=html]<div style="position:relative">
<img src="images/test.jpg" />
<div id="colorFilt" style="position:absolute;background-color:red;top:0;left:0;width:425px;height:280px;opacity:.50;filter: alpha(opacity=50);"></div>
</div>
<select onchange="document.getElementById('colorFilt').style.backgroundColor=this[selectedIndex].value;">
<option value="red">Red</option>
<option value="blue">Blue</option>
<option value="green">Green</option>
<option value="yellow">Yellow</option>
</select>[/code]
Copy linkTweet thisAlerts:
@jasongrauthorSep 21.2006 — thanks I will probably use a similar solution to what you suggested
×

Success!

Help @jasongr spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.1,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...