Vim ports of the Prot16 collection of colour schemes.
More from prot16-vim
12
set background=darkcolorscheme termina_dark
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=darkcolorscheme symbiosis_dark
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=darkcolorscheme sonho_dark
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=darkcolorscheme seabed_light
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=darkcolorscheme seabed_dark
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=darkcolorscheme playa_dark
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=darkcolorscheme overgrowth_dark
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=darkcolorscheme orionis_dark
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=darkcolorscheme oliveira_dark
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=darkcolorscheme ocarina_dark
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=darkcolorscheme noir_light
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=darkcolorscheme noir_dark
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=darkcolorscheme neptune_dark
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=darkcolorscheme nefelio_dark
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=darkcolorscheme magus_dark
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=darkcolorscheme hyperion_dark
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=darkcolorscheme hinterland_dark
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=darkcolorscheme gaia_dark
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=darkcolorscheme fortuna_dark
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=darkcolorscheme flowerbed_dark
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=darkcolorscheme ficus_dark
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=darkcolorscheme equinox_dark
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=darkcolorscheme cyprium_dark
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=darkcolorscheme caprice_dark
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=darkcolorscheme camo_dark
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=darkcolorscheme blau_dark
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=darkcolorscheme bionis_dark
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=darkcolorscheme archaic_dark
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=darkcolorscheme alto_dark
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=lightcolorscheme alto_light
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=lightcolorscheme archaic_light
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=lightcolorscheme bionis_light
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=lightcolorscheme blau_light
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=lightcolorscheme camo_light
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=lightcolorscheme caprice_light
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=lightcolorscheme cyprium_light
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=lightcolorscheme equinox_light
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=lightcolorscheme ficus_light
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=lightcolorscheme flowerbed_light
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=lightcolorscheme fortuna_light
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=lightcolorscheme gaia_light
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=lightcolorscheme hinterland_light
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=lightcolorscheme hyperion_light
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=lightcolorscheme magus_light
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=lightcolorscheme nefelio_light
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=lightcolorscheme neptune_light
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=lightcolorscheme ocarina_light
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=lightcolorscheme oliveira_light
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=lightcolorscheme orionis_light
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=lightcolorscheme overgrowth_light
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=lightcolorscheme playa_light
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=lightcolorscheme sonho_light
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=lightcolorscheme symbiosis_light
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=lightcolorscheme termina_light
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
set background=lightcolorscheme vin_light
NORMAL.vimrcunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12