ruby_light_map_creator.rb
#Now, generate a color variation chart from the provided starting color.
Now, generate a color variation chart from the provided starting color.
Now generate a color variation chart from the provided starting color .
def create_color_chart(lightmap_formula)
    color = Paleta::Color.new(:hex, lightmap_formula[3])
    palette = Paleta::Palette.generate(:type => :shades, :from => :color, :size => lightmap_formula[0], :color => color)
    color_chart = []
    max_x = lightmap_formula[1] / 5
    max_y = lightmap_formula[2] / 5
    color_chart[0] = [max_x, max_y, lightmap_formula[0], lightmap_formula[1], lightmap_formula[2], lightmap_formula[3]]
    speckle_sort(lightmap_formula, max_x, max_y, color_chart, palette)
  end
def create_color_chart ( lightmap_formula ) color = Paleta :: Color . new ( :hex , lightmap_formula [ 3 ] ) palette = Paleta :: Palette . generate ( :type => :shades , :from => :color , :size => lightmap_formula [ 0 ] , :color => color ) color_chart = [ ] max_x = lightmap_formula [ 1 ] / 5 max_y = lightmap_formula [ 2 ] / 5 color_chart [ 0 ] = [ max_x , max_y , lightmap_formula [ 0 ] , lightmap_formula [ 1 ] , lightmap_formula [ 2 ] , lightmap_formula [ 3 ] ] speckle_sort ( lightmap_formula , max_x , max_y , color_chart , palette ) end
Now, generate a color variation chart from the provided starting color.
Now generate a color variation chart from the provided starting color .
# Thanks jordanstephens! https://github.com/jordanstephens/paleta # Makes my life SO much easier.
lightmap_formula
<not_specific>