Module: GoogleDrive::Worksheet::Colors

Defined in:
lib/google_drive/worksheet.rb

Overview

A few default color instances that match the colors from the Google Sheets web UI.

TODO: Add more colors from github.com/denilsonsa/gimp-palettes/blob/master/palettes/Google-Drive.gpl

Constant Summary collapse

RED =
Google::Apis::SheetsV4::Color.new(red: 1.0)
DARK_RED_1 =
Google::Apis::SheetsV4::Color.new(red: 0.8)
RED_BERRY =
Google::Apis::SheetsV4::Color.new(red: 0.596)
DARK_RED_BERRY_1 =
Google::Apis::SheetsV4::Color.new(red: 0.659, green: 0.11)
ORANGE =
Google::Apis::SheetsV4::Color.new(red: 1.0, green: 0.6)
DARK_ORANGE_1 =
Google::Apis::SheetsV4::Color.new(red: 0.9, green: 0.569, blue: 0.22)
YELLOW =
Google::Apis::SheetsV4::Color.new(red: 1.0, green: 1.0)
DARK_YELLOW_1 =
Google::Apis::SheetsV4::Color.new(red: 0.945, green: 0.76, blue: 0.196)
GREEN =
Google::Apis::SheetsV4::Color.new(green: 1.0)
DARK_GREEN_1 =
Google::Apis::SheetsV4::Color.new(red: 0.416, green: 0.659, blue: 0.31)
CYAN =
Google::Apis::SheetsV4::Color.new(green: 1.0, blue: 1.0)
DARK_CYAN_1 =
Google::Apis::SheetsV4::Color.new(red: 0.27, green: 0.506, blue: 0.557)
CORNFLOWER_BLUE =
Google::Apis::SheetsV4::Color.new(red: 0.29, green: 0.525, blue: 0.91)
DARK_CORNFLOWER_BLUE_1 =
Google::Apis::SheetsV4::Color.new(red: 0.235, green: 0.47, blue: 0.847)
BLUE =
Google::Apis::SheetsV4::Color.new(blue: 1.0)
DARK_BLUE_1 =
Google::Apis::SheetsV4::Color.new(red: 0.239, green: 0.522, blue: 0.776)
PURPLE =
Google::Apis::SheetsV4::Color.new(red: 0.6, blue: 1.0)
DARK_PURPLE_1 =
Google::Apis::SheetsV4::Color.new(red: 0.404, green: 0.306, blue: 0.655)
MAGENTA =
Google::Apis::SheetsV4::Color.new(red: 1.0, blue: 1.0)
DARK_MAGENTA_1 =
Google::Apis::SheetsV4::Color.new(red: 0.651, green: 0.302, blue: 0.475)
WHITE =
Google::Apis::SheetsV4::Color.new(red: 1.0, green: 1.0, blue: 1.0)
BLACK =
Google::Apis::SheetsV4::Color.new(red: 0.0, green: 0.0, blue: 0.0)
GRAY =
Google::Apis::SheetsV4::Color.new(red: 0.8, green: 0.8, blue: 0.8)
DARK_GRAY_1 =
Google::Apis::SheetsV4::Color.new(red: 0.714, green: 0.714, blue: 0.714)