PDF::Writer:PDF::SimpleTable#shade_color, #shade_color=
require 'pdf/simpletable' pdf = PDF::Writer.new PDF::SimpleTable.new do |tab| tab.column_order = %w(col1 col2 col3) p tab.shade_color tab.shade_color = Color::RGB::Blue tab.show_lines = :all data = [ { "col1" => "foo", "col2" => "bar", "col3" => "baz" }, ] tab.data.replace data tab.render_on(pdf) end pdf.save_as("2008040500.pdf")
で、
#<Color::RGB:0x40252b38 @r=0.8, @b=0.8, @g=0.8>