module AutoColors
Constants
- CUBE256
- CUBE256_8NORM
Primary 3-bit (8 colors). Unique representation!
- CUBE256_BRIGHT
Equivalent “bright” versions of original 8 colors.
- CUBE256_GRAYS
Gray-scale range.
- CUBE256_STEPS
Strictly ascending.
- KEYS
- LRGB2XYZ
- MAPPING
- TEMPLATE_PATH
- VERSION
- XYZ2LRGB
Public Class Methods
generate_vim_colors(name=nil)
click to toggle source
# File lib/autocolors.rb, line 14 def generate_vim_colors(name=nil) scheme = ColorScheme.new(name) template = ERB.new(template('colorscheme.erb.vim'),nil,'-') return template.result(binding) end
template(name)
click to toggle source
# File lib/autocolors.rb, line 10 def template(name) IO.read(File.join(TEMPLATE_PATH, name)) end
version()
click to toggle source
# File lib/autocolors.rb, line 8 def version() VERSION end