2
0
mirror of https://github.com/PitPik/tinyColorPicker synced 2025-07-04 00:24:29 -06:00

GPU rendering normalization

This commit is contained in:
peterd 2015-02-05 13:27:22 +01:00
parent b21a9208ee
commit fb422e4bb9
3 changed files with 7 additions and 7 deletions

View File

@ -181,19 +181,19 @@
hueRGB.r + ',' + hueRGB.g + ',' + hueRGB.b + ')'}); hueRGB.r + ',' + hueRGB.g + ',' + hueRGB.b + ')'});
_$xy_cursor.css({ _$xy_cursor.css({
transform: t3d + '(' + s + 'px, ' + v + 'px, 0)', transform: t3d + '(' + s + 'px, ' + v + 'px, 0)',
left: !_GPU ? s : 0, left: !_GPU ? s : '',
top: !_GPU ? v : 0, top: !_GPU ? v : '',
borderColor : colors.RGBLuminance > 0.22 ? dark : light borderColor : colors.RGBLuminance > 0.22 ? dark : light
}); });
_$z_cursor.css({ _$z_cursor.css({
transform: t3d + '(0, ' + h + 'px, 0)', transform: t3d + '(0, ' + h + 'px, 0)',
top: !_GPU ? h : 0, top: !_GPU ? h : '',
borderColor : 'transparent ' + HUEContrast, borderColor : 'transparent ' + HUEContrast,
}); });
_$alpha.css({backgroundColor: 'rgb(' + RGBInnerText + ')'}); _$alpha.css({backgroundColor: 'rgb(' + RGBInnerText + ')'});
_$alpha_cursor.css({ _$alpha_cursor.css({
transform: t3d + '(' + a + 'px, 0, 0)', transform: t3d + '(' + a + 'px, 0, 0)',
left: !_GPU ? a : 0, left: !_GPU ? a : '',
borderColor : alphaContrast + ' transparent' borderColor : alphaContrast + ' transparent'
}); });
_options.doRender && _cache.$element.css({ _options.doRender && _cache.$element.css({

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long