FAQ Database Discussion Community


Internet Explorer hover/rgba/opacity/css3 compatibility

css3,internet-explorer,hover,internet-explorer-9,rgba
I am using CSS3 with an rgba alpha opacity hover to display text over an image when the user hovers. Works fine in chrome, firefox and safari but when trying in internet explorer (9) it just shows the image and hovering does nothing. Check out the code here: http://jsfiddle.net/b16pow50/ div...

Convert a 0-1 value to a hex colour?

javascript,colors,hex,rgb,rgba
I'm creating an app that visualises stars using a NASA API. The colour of a star comes back as a 0 to 1 value, with 0 being pure blue, and 1 being pure red. Essentially I need to set up a way to convert 0-1 values in javascript to a...

HTML5 canvas performance between strokeStyle rgba/globalAlpha

html5-canvas,alpha,rgba
What is better to use for better performance if want to use color with transparency strokeStyle with rgba or globalAlpha? First: var rChannel = 0; var gChannel = 0; var bChannel = 0; var aChannel = 0.5; context.strokeStyle("rgba(" + rChannel + "," + gChannel + "," + bChannel + ","...

OpenEXR linker error when 'half' type is assigned

c++,osx,linker-error,rgba,openexr
I'm having an issue assigning values to an Imf::Rgba struct containing half types as defined by OpenEXR. There appears to be a linker error that concerns the conversion from float to half. Linking CXX executable graphics-env Undefined symbols for architecture x86_64: "half::_eLut", referenced from: half::half(float) in main.cpp.o "half::convert(int)", referenced from:...

Chrome slightly changes alpha-value of RGBA color after setting it

css,google-chrome,rgba
Please consider the following snippet: var el = document.getElementById('x'); el.style.backgroundColor = "rgba(124, 181, 236, 0.25)"; alert(el.style.backgroundColor); <div id="x">Testing</div> On Windows 8.1 this gives back the exact input for backgroundColor in IE 11 and Firefox 37, but in Chrome 43 it changes the alpha-value, and the alert says: rgba(124, 181, 236,...