tweak cam render colors

This commit is contained in:
Stewart Allen 2025-12-17 11:19:30 -05:00
commit 14f66061a8
3 changed files with 8 additions and 4 deletions

View file

@ -10,10 +10,11 @@ const COLOR = {
slicing: 0xffaaaa,
slicing_opacity: 0.5,
sliced_opacity: 0.0,
cam_preview: 0x888888,
cam_sliced_opacity: 0.2,
cam_preview: 0xdddddd,
cam_preview_opacity: 0.2,
cam_preview_dark: 0x888888,
cam_preview_opacity_dark: 0.2,
cam_preview_opacity: 0.1,
cam_sliced_opacity: 0.2
};
const LISTS = {

View file

@ -326,7 +326,7 @@ function preparePreview(callback, scale = 1, offset = 0) {
if (isCam) {
api.widgets.setOpacity(isDark ? COLOR.cam_preview_opacity_dark : COLOR.cam_preview_opacity);
api.widgets.setColor(COLOR.cam_preview);
api.widgets.setColor(isDark ? COLOR.cam_preview_dark : COLOR.cam_preview);
} else if (offset === 0) {
api.widgets.setOpacity(COLOR.preview_opacity);
}

View file

@ -421,6 +421,9 @@ function color4light(rgb, inc, seg) {
rgb.b = 1;
break;
}
rgb.r *= 0.8;
rgb.g *= 0.8;
rgb.b = 0.4;
}
function color4light2(rgb, inc, seg) {