/dports/www/R-cran-bslib/bslib/inst/lib/bs4/scss/ |
H A D | _deprecated.scss | 3 // color-yiq(), but it's in case someone happens to use it in their 7 @if variable-exists("yiq-contrasted-threshold") or 8 variable-exists("yiq-text-dark") or 9 variable-exists("yiq-text-light") { 10 @warn "color-yiq() is deprecated, use color-contrast() instead" 12 $yiq-contrasted-threshold: 150 !default; 13 $yiq-text-dark: black !default; 14 $yiq-text-light: white !default; 15 @function color-yiq($color, $dark: $yiq-text-dark, $light: $yiq-text-light) { 22 $yiq: (($r * 299) + ($g * 587) + ($b * 114)) / 1000; variable [all …]
|
/dports/www/R-cran-bslib/bslib/tools/patches/ |
H A D | 005-backport-bs5-color-contrast.patch | 14 + variable-exists("yiq-text-dark") or 19 +$yiq-text-dark: black !default; 20 +$yiq-text-light: white !default; 21 +@function color-yiq($color, $dark: $yiq-text-dark, $light: $yiq-text-light) { 30 + @if ($yiq >= $yiq-contrasted-threshold) { 45 -@function color-yiq($color, $dark: $yiq-text-dark, $light: $yiq-text-light) { 52 - @if ($yiq >= $yiq-contrasted-threshold) { 90 - color: color-yiq($bg); 96 - color: color-yiq($bg); 109 - color: color-yiq($background); [all …]
|
/dports/devel/color/color-a04952cf27cc315e31811f2e940221bf8cf9f8ca/src/color/yiq/ |
H A D | category.hpp | 14 struct yiq struct 19 using yiq_bool = ::color::category::yiq< bool >; argument 20 using yiq_uint8 = ::color::category::yiq< std::uint8_t >; 21 using yiq_uint16 = ::color::category::yiq< std::uint16_t >; 23 using yiq_uint32 = ::color::category::yiq< std::uint32_t >; 25 using yiq_uint64 = ::color::category::yiq< std::uint64_t >; 26 using yiq_float = ::color::category::yiq< float >; 27 using yiq_double = ::color::category::yiq< double >; 28 using yiq_ldouble = ::color::category::yiq< long double >;
|
/dports/finance/odoo/odoo-19d77c2a03335eb95a686bd69a1b56b38e87d609/odoo/addons/web/static/src/scss/ |
H A D | bs_mixins_overrides.scss | 10 // Override color-yiq function to handle the alpha component of colors and 12 @function color-yiq($color, $dark: $yiq-text-dark, $light: $yiq-text-light, $background: $body-bg, … 13 … $threshold: if($yiq-contrasted-threshold != false, $yiq-contrasted-threshold / 255 * 100%, false); 30 $o-yiq-min-opacity-threshold: 0.3 !default; 33 …, $text-color: null, $with-extras: true, $important: true, $yiq-min-opacity-threshold: $o-yiq-min-… 35 $-yiq-threshold-met: alpha($color) > $yiq-min-opacity-threshold; 37 …$-yiq-color: if($text-color, $text-color, if($-yiq-threshold-met, color-yiq($color, $background: $… 39 color: $-yiq-color; // not important so that text utilities still work 41 @if $with-extras and $-yiq-threshold-met { 47 color: mute-color($-yiq-color) !important;
|
/dports/devel/color/color-a04952cf27cc315e31811f2e940221bf8cf9f8ca/example/less-than-1k/ctor/list/ |
H A D | yiq.cpp | 13 yiq<uint8_t> c1( { 7, 6 , 3} ); in main() 14 yiq<uint16_t> c2( { 6, 12 , 19} ); in main() 15 yiq<uint32_t> c3( { 64, 127 , 192} ); in main() 16 yiq<uint64_t> c4( { 640, 1270 , 1920} ); in main() 17 yiq<float> c5( { 0.5, 0.6,0.7} ); in main() 18 yiq<double> c6( { 0.5, 0.6,0.7} ); in main() 19 yiq<long double> c7( { 0.5, 0.6,0.7} ); in main()
|
/dports/devel/color/color-a04952cf27cc315e31811f2e940221bf8cf9f8ca/src/color/yiq/akin/ |
H A D | hsi.hpp | 13 …template< >struct yiq< ::color::category::hsi_uint8 >{ typedef ::color::category::yiq_uint8 ak… struct 14 …template< >struct yiq< ::color::category::hsi_uint16 >{ typedef ::color::category::yiq_uint16 ak… argument 15 …template< >struct yiq< ::color::category::hsi_uint32 >{ typedef ::color::category::yiq_uint32 ak… argument 16 …template< >struct yiq< ::color::category::hsi_uint64 >{ typedef ::color::category::yiq_uint64 ak… argument 17 …template< >struct yiq< ::color::category::hsi_float >{ typedef ::color::category::yiq_float ak… struct 18 …template< >struct yiq< ::color::category::hsi_double >{ typedef ::color::category::yiq_double ak… struct 19 …template< >struct yiq< ::color::category::hsi_ldouble >{ typedef ::color::category::yiq_ldouble ak… argument
|
H A D | hsv.hpp | 13 …template< >struct yiq< ::color::category::hsv_uint8 >{ typedef ::color::category::yiq_uint8 ak… struct 14 …template< >struct yiq< ::color::category::hsv_uint16 >{ typedef ::color::category::yiq_uint16 ak… struct 15 …template< >struct yiq< ::color::category::hsv_uint32 >{ typedef ::color::category::yiq_uint32 ak… argument 16 …template< >struct yiq< ::color::category::hsv_uint64 >{ typedef ::color::category::yiq_uint64 ak… argument 17 …template< >struct yiq< ::color::category::hsv_float >{ typedef ::color::category::yiq_float ak… struct 18 …template< >struct yiq< ::color::category::hsv_double >{ typedef ::color::category::yiq_double ak… argument 19 …template< >struct yiq< ::color::category::hsv_ldouble >{ typedef ::color::category::yiq_ldouble ak… struct
|
H A D | luv.hpp | 13 …template< >struct yiq< ::color::category::luv_uint8 >{ typedef ::color::category::yiq_uint8 ak… argument 14 …template< >struct yiq< ::color::category::luv_uint16 >{ typedef ::color::category::yiq_uint16 ak… struct 15 …template< >struct yiq< ::color::category::luv_uint32 >{ typedef ::color::category::yiq_uint32 ak… argument 16 …template< >struct yiq< ::color::category::luv_uint64 >{ typedef ::color::category::yiq_uint64 ak… struct 17 …template< >struct yiq< ::color::category::luv_float >{ typedef ::color::category::yiq_float ak… argument 18 …template< >struct yiq< ::color::category::luv_double >{ typedef ::color::category::yiq_double ak… argument 19 …template< >struct yiq< ::color::category::luv_ldouble >{ typedef ::color::category::yiq_ldouble ak… struct
|
H A D | xyy.hpp | 13 …template< >struct yiq< ::color::category::xyy_uint8 >{ typedef ::color::category::yiq_uint8 ak… argument 14 …template< >struct yiq< ::color::category::xyy_uint16 >{ typedef ::color::category::yiq_uint16 ak… argument 15 …template< >struct yiq< ::color::category::xyy_uint32 >{ typedef ::color::category::yiq_uint32 ak… struct 16 …template< >struct yiq< ::color::category::xyy_uint64 >{ typedef ::color::category::yiq_uint64 ak… struct 17 …template< >struct yiq< ::color::category::xyy_float >{ typedef ::color::category::yiq_float ak… argument 18 …template< >struct yiq< ::color::category::xyy_double >{ typedef ::color::category::yiq_double ak… struct 19 …template< >struct yiq< ::color::category::xyy_ldouble >{ typedef ::color::category::yiq_ldouble ak… struct
|
H A D | LabCH.hpp | 13 …template< >struct yiq< ::color::category::LabCH_uint8 >{ typedef ::color::category::yiq_uint8 … argument 14 …template< >struct yiq< ::color::category::LabCH_uint16 >{ typedef ::color::category::yiq_uint16 … argument 15 …template< >struct yiq< ::color::category::LabCH_uint32 >{ typedef ::color::category::yiq_uint32 … struct 16 …template< >struct yiq< ::color::category::LabCH_uint64 >{ typedef ::color::category::yiq_uint64 … struct 17 …template< >struct yiq< ::color::category::LabCH_float >{ typedef ::color::category::yiq_float … struct 18 …template< >struct yiq< ::color::category::LabCH_double >{ typedef ::color::category::yiq_double … argument 19 …template< >struct yiq< ::color::category::LabCH_ldouble >{ typedef ::color::category::yiq_ldouble … argument
|
H A D | LuvCH.hpp | 13 …template< >struct yiq< ::color::category::LuvCH_uint8 >{ typedef ::color::category::yiq_uint8 … argument 14 …template< >struct yiq< ::color::category::LuvCH_uint16 >{ typedef ::color::category::yiq_uint16 … argument 15 …template< >struct yiq< ::color::category::LuvCH_uint32 >{ typedef ::color::category::yiq_uint32 … argument 16 …template< >struct yiq< ::color::category::LuvCH_uint64 >{ typedef ::color::category::yiq_uint64 … argument 17 …template< >struct yiq< ::color::category::LuvCH_float >{ typedef ::color::category::yiq_float … argument 18 …template< >struct yiq< ::color::category::LuvCH_double >{ typedef ::color::category::yiq_double … struct 19 …template< >struct yiq< ::color::category::LuvCH_ldouble >{ typedef ::color::category::yiq_ldouble … struct
|
H A D | cmy.hpp | 13 …template< >struct yiq< ::color::category::cmy_uint8 >{ typedef ::color::category::yiq_uint8 ak… struct 14 …template< >struct yiq< ::color::category::cmy_uint16 >{ typedef ::color::category::yiq_uint16 ak… argument 15 …template< >struct yiq< ::color::category::cmy_uint32 >{ typedef ::color::category::yiq_uint32 ak… struct 16 …template< >struct yiq< ::color::category::cmy_uint64 >{ typedef ::color::category::yiq_uint64 ak… argument 17 …template< >struct yiq< ::color::category::cmy_float >{ typedef ::color::category::yiq_float ak… struct 18 …template< >struct yiq< ::color::category::cmy_double >{ typedef ::color::category::yiq_double ak… struct 19 …template< >struct yiq< ::color::category::cmy_ldouble >{ typedef ::color::category::yiq_ldouble ak… argument
|
H A D | cmyk.hpp | 13 …template< >struct yiq< ::color::category::cmyk_uint8 >{ typedef ::color::category::yiq_uint8 a… argument 14 …template< >struct yiq< ::color::category::cmyk_uint16 >{ typedef ::color::category::yiq_uint16 a… struct 15 …template< >struct yiq< ::color::category::cmyk_uint32 >{ typedef ::color::category::yiq_uint32 a… argument 16 …template< >struct yiq< ::color::category::cmyk_uint64 >{ typedef ::color::category::yiq_uint64 a… argument 17 …template< >struct yiq< ::color::category::cmyk_float >{ typedef ::color::category::yiq_float a… argument 18 …template< >struct yiq< ::color::category::cmyk_double >{ typedef ::color::category::yiq_double a… struct 19 …template< >struct yiq< ::color::category::cmyk_ldouble >{ typedef ::color::category::yiq_ldouble a… argument
|
H A D | gray.hpp | 13 …template< >struct yiq< ::color::category::gray_uint8 >{ typedef ::color::category::yiq_uint8 a… struct 14 …template< >struct yiq< ::color::category::gray_uint16 >{ typedef ::color::category::yiq_uint16 a… argument 15 …template< >struct yiq< ::color::category::gray_uint32 >{ typedef ::color::category::yiq_uint32 a… argument 16 …template< >struct yiq< ::color::category::gray_uint64 >{ typedef ::color::category::yiq_uint64 a… struct 17 …template< >struct yiq< ::color::category::gray_float >{ typedef ::color::category::yiq_float a… struct 18 …template< >struct yiq< ::color::category::gray_double >{ typedef ::color::category::yiq_double a… struct 19 …template< >struct yiq< ::color::category::gray_ldouble >{ typedef ::color::category::yiq_ldouble a… argument
|
H A D | YCgCo.hpp | 13 …template< >struct yiq< ::color::category::YCgCo_uint8 >{ typedef ::color::category::yiq_uint8 … argument 14 …template< >struct yiq< ::color::category::YCgCo_uint16 >{ typedef ::color::category::yiq_uint16 … struct 15 …template< >struct yiq< ::color::category::YCgCo_uint32 >{ typedef ::color::category::yiq_uint32 … struct 16 …template< >struct yiq< ::color::category::YCgCo_uint64 >{ typedef ::color::category::yiq_uint64 … struct 17 …template< >struct yiq< ::color::category::YCgCo_float >{ typedef ::color::category::yiq_float … struct 18 …template< >struct yiq< ::color::category::YCgCo_double >{ typedef ::color::category::yiq_double … argument 19 …template< >struct yiq< ::color::category::YCgCo_ldouble >{ typedef ::color::category::yiq_ldouble … struct
|
H A D | rgb.hpp | 13 …template< >struct yiq< ::color::category::rgb_uint8 >{ typedef ::color::category::yiq_uint8 ak… struct 14 …template< >struct yiq< ::color::category::rgb_uint16 >{ typedef ::color::category::yiq_uint16 ak… argument 15 …template< >struct yiq< ::color::category::rgb_uint32 >{ typedef ::color::category::yiq_uint32 ak… argument 16 …template< >struct yiq< ::color::category::rgb_uint64 >{ typedef ::color::category::yiq_uint64 ak… argument 17 …template< >struct yiq< ::color::category::rgb_float >{ typedef ::color::category::yiq_float ak… argument 18 …template< >struct yiq< ::color::category::rgb_double >{ typedef ::color::category::yiq_double ak… struct 19 …template< >struct yiq< ::color::category::rgb_ldouble >{ typedef ::color::category::yiq_ldouble ak… struct
|
H A D | YDbDr.hpp | 13 …template< >struct yiq< ::color::category::YDbDr_uint8 >{ typedef ::color::category::yiq_uint8 … argument 14 …template< >struct yiq< ::color::category::YDbDr_uint16 >{ typedef ::color::category::yiq_uint16 … argument 15 …template< >struct yiq< ::color::category::YDbDr_uint32 >{ typedef ::color::category::yiq_uint32 … argument 16 …template< >struct yiq< ::color::category::YDbDr_uint64 >{ typedef ::color::category::yiq_uint64 … struct 17 …template< >struct yiq< ::color::category::YDbDr_float >{ typedef ::color::category::yiq_float … argument 18 …template< >struct yiq< ::color::category::YDbDr_double >{ typedef ::color::category::yiq_double … argument 19 …template< >struct yiq< ::color::category::YDbDr_ldouble >{ typedef ::color::category::yiq_ldouble … argument
|
H A D | hsl.hpp | 13 …template< >struct yiq< ::color::category::hsl_uint8 >{ typedef ::color::category::yiq_uint8 ak… argument 14 …template< >struct yiq< ::color::category::hsl_uint16 >{ typedef ::color::category::yiq_uint16 ak… argument 15 …template< >struct yiq< ::color::category::hsl_uint32 >{ typedef ::color::category::yiq_uint32 ak… argument 16 …template< >struct yiq< ::color::category::hsl_uint64 >{ typedef ::color::category::yiq_uint64 ak… argument 17 …template< >struct yiq< ::color::category::hsl_float >{ typedef ::color::category::yiq_float ak… struct 18 …template< >struct yiq< ::color::category::hsl_double >{ typedef ::color::category::yiq_double ak… struct 19 …template< >struct yiq< ::color::category::hsl_ldouble >{ typedef ::color::category::yiq_ldouble ak… struct
|
H A D | yuv.hpp | 13 …template< ::color::constant::yuv::reference_enum reference_number >struct yiq< ::color::category::… struct 14 …template< ::color::constant::yuv::reference_enum reference_number >struct yiq< ::color::category::… struct 15 …template< ::color::constant::yuv::reference_enum reference_number >struct yiq< ::color::category::… struct 16 …template< ::color::constant::yuv::reference_enum reference_number >struct yiq< ::color::category::… struct 17 …template< ::color::constant::yuv::reference_enum reference_number >struct yiq< ::color::category::… struct 18 …template< ::color::constant::yuv::reference_enum reference_number >struct yiq< ::color::category::… argument 19 …template< ::color::constant::yuv::reference_enum reference_number >struct yiq< ::color::category::… argument
|
H A D | YPbPr.hpp | 13 …template< ::color::constant::YPbPr::reference_enum reference_number >struct yiq< ::color::category… struct 14 …template< ::color::constant::YPbPr::reference_enum reference_number >struct yiq< ::color::category… argument 15 …template< ::color::constant::YPbPr::reference_enum reference_number >struct yiq< ::color::category… argument 16 …template< ::color::constant::YPbPr::reference_enum reference_number >struct yiq< ::color::category… struct 17 …template< ::color::constant::YPbPr::reference_enum reference_number >struct yiq< ::color::category… struct 18 …template< ::color::constant::YPbPr::reference_enum reference_number >struct yiq< ::color::category… struct 19 …template< ::color::constant::YPbPr::reference_enum reference_number >struct yiq< ::color::category… argument
|
/dports/devel/color/color-a04952cf27cc315e31811f2e940221bf8cf9f8ca/example/less-than-1k/ctor/const/ |
H A D | yiq_lavender.cpp | 11 yiq<uint8_t> c1( constant::lavender_t{} ); in main() 12 yiq<uint16_t> c2( constant::lavender_t{} ); in main() 13 yiq<uint32_t> c3( constant::lavender_t{} ); in main() 14 yiq<uint64_t> c4( constant::lavender_t{} ); in main() 15 yiq<float> c5( constant::lavender_t{} ); in main() 16 yiq<double> c6( constant::lavender_t{} ); in main() 17 yiq<long double> c7( constant::lavender_t{} ); in main()
|
/dports/devel/color/color-a04952cf27cc315e31811f2e940221bf8cf9f8ca/example/less-than-1k/reference/ |
H A D | yiq.cpp | 14 ::color::yiq<uint8_t > c1( ::color::constant::aqua_t{} ); in main() 15 ::color::yiq<uint16_t > c2( ::color::constant::aqua_t{} ); in main() 16 ::color::yiq<uint32_t > c3( ::color::constant::aqua_t{} ); in main() 17 ::color::yiq<uint64_t > c4( ::color::constant::aqua_t{} ); in main() 18 ::color::yiq<float > c5( ::color::constant::aqua_t{} ); in main() 19 ::color::yiq<double > c6( ::color::constant::aqua_t{} ); in main() 20 ::color::yiq<long double > c7( ::color::constant::aqua_t{} ); in main()
|
/dports/devel/color/color-a04952cf27cc315e31811f2e940221bf8cf9f8ca/example/test/ |
H A D | main.cpp | 496 test_conversion< color::yiq, color::yiq >(); in invoke() 582 color::yiq<double> yiq; in test_yiq2yuv601_quick() local 615 …yiq = ::color::constant::black_t{}; yuv = yiq; std::cout << "black "; print( yuv ); std::cou… in test_yiq2yuv601_quick() 616 …yiq = ::color::constant::white_t{}; yuv = yiq; std::cout << "white "; print( yuv ); std::cou… in test_yiq2yuv601_quick() 618 …yiq = ::color::constant::red_t{}; yuv = yiq; std::cout << "red "; print( yuv ); std::cou… in test_yiq2yuv601_quick() 619 …yiq = ::color::constant::lime_t{}; yuv = yiq; std::cout << "lime "; print( yuv ); std::cou… in test_yiq2yuv601_quick() 620 …yiq = ::color::constant::blue_t{}; yuv = yiq; std::cout << "blue "; print( yuv ); std::cou… in test_yiq2yuv601_quick() 622 …yiq = ::color::constant::cyan_t{}; yuv = yiq; std::cout << "cyan "; print( yuv ); std::cou… in test_yiq2yuv601_quick() 623 …yiq = ::color::constant::yellow_t{}; yuv = yiq; std::cout << "yellow "; print( yuv ); std::cou… in test_yiq2yuv601_quick() 624 …yiq = ::color::constant::magenta_t{}; yuv = yiq; std::cout << "magenta "; print( yuv ); std::cou… in test_yiq2yuv601_quick() [all …]
|
/dports/games/libretro-shaders-slang/slang-shaders-9850d68939b86262eae9f0da01ff1c11daafcdc3/misc/ |
H A D | yiq-hue-adjustment.slang | 46 vec3 yiq = RGBtoYIQ(rgb); 48 float hue = atan(yiq.z, yiq.y) + hue_radians; 49 float chroma = sqrt(yiq.z * yiq.z + yiq.y * yiq.y); 51 vec3 color = vec3(yiq.x, chroma * cos(hue), chroma * sin(hue));
|
/dports/games/libretro-shaders-slang/slang-shaders-9850d68939b86262eae9f0da01ff1c11daafcdc3/nes_raw_palette/shaders/cgwg-famicom-geom/ |
H A D | lowpass-notch-decode-yiq.slang | 77 vec3 yiq = vec3(0.0); 97 yiq.x += dot(samp, filt) + dot(rsamp,filt); 100 yiq.y += dot(samp, filt*cos((vec4(0,1,2,3)+vec4(4*(i+p)))*PI_6)); 101 yiq.y += dot(rsamp,filt*cos((vec4(6,7,8,9)+vec4(4*(i+p)))*PI_6)); 102 yiq.z += dot(samp, filt*sin((vec4(0,1,2,3)+vec4(4*(i+p)))*PI_6)); 117 yiq.x += dot(samp.xy, filt) + dot(samp2.zw, filt); 126 yiq *= vec3(0.5/norm_y, 1.0/norm_c, 1.0/norm_c); 128 //FragColor = vec4(dot(yiq, vec3(1.0, 0.946882, 0.623557)), 129 // dot(yiq, vec3(1.0,-0.274788,-0.635691)), 130 // dot(yiq, vec3(1.0,-1.108545, 1.709007)), [all …]
|