Forum Moderators: open
But if you need more than that, I'd guess that PHP would be your best hope.
If I can only support newer browsers (IE5+/NS6+/...) no problem so PNG is ok for me.
I think that if I explain better what I want to do I'll make things easier for everybody:
I want to have a color wheel image where users select a color by clicking in it (easy part). I also want to have a bar to modify the lightness of the color wheel image so the represented colors change. When a color is selected I want to be able to know the color and paint it somewhere else on the user screen (calculus stuff).
Can css do this? Something else?
Hope this helps.
I want to have a color wheel image where users select a color by clicking in it (easy part). I also want to have a bar to modify the lightness of the color wheel image so the represented colors change. When a color is selected I want to be able to know the color and paint it somewhere else on the user screen (calculus stuff).Can css do this? Something else?
Paco,
It is probably a lot more complex than you are hoping for, but if the "Something else?" includes Java, the answer is yes. Java would also give you control of saturation, not mentioned in your description above.
[Sorry if following paragraph violates Webmasterworld policy. I am just trying to answer his question.]
Check my profile for home page and click to the interactive color wheel. Source code is included should you decide Java might be a viable approach.
-- Rich
<DIV ID="filterDIV" STYLE="background:green;
filter:progid:DXImageTransform.Microsoft.Alpha( Opacity=20, Style=0)">
YOUR IMAGE</DIV>
...
<SELECT onchange="filterDIV.filters.item('DXImageTransform.Microsoft.Alpha').opacity=this.options[this.selectedIndex].value">
<OPTION VALUE="0">0</OPTION>
<OPTION VALUE="10">10</OPTION>
<OPTION VALUE="20">20</OPTION>
...
<OPTION VALUE="90">90</OPTION>
<OPTION VALUE="100" SELECTED>100</OPTION>
</SELECT>