-
Notifications
You must be signed in to change notification settings - Fork 12
/
Vanderbilt.R
179 lines (152 loc) · 5.9 KB
/
Vanderbilt.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
## Vanderbilt.R | 2023 08 24
## Colors of the University of Vanderbilt, USA
## --------------------------------------------
# Information: -----
# cur_pals: "vanderbilt_1","vanderbilt_2", "vanderbilt_3"
# inst: "Vanderbilt University"
# country: USA
# URL: https://www.vanderbilt.edu/
# Color source:
# Color definitions are based on Vanderbilt's brand style guide:
# color_URL: <https://brand.vanderbilt.edu/color/>
# Last check: 2023-07-21
# Colors: ------
# Color palette(s):
# - vanderbilt_1: Core colors of Vanderbilt University ------
#' Core colors of Vanderbilt University, USA
#'
#' \code{vanderbilt_1} provides the four core colors
#' of the \href{https://www.vanderbilt.edu/}{Vanderbilt University}, USA.
#'
#' The 4 core colors are
#' \code{"vanderbilt_metallic_gold"} (defined as HEX #FEEEB6),
#' \code{"vanderbilt_flat_gold"} (defined as HEX #CFAE70),
#' \code{"vanderbilt_black"} (defined as HEX #1C1C1C), and
#' \code{"white"} (defined as HEX #FFFFFF).
#'
#' \code{vanderbilt_1} uses the HEX color definitions.
#'
#' @return
#' A named vector of colors (HEX/HTML codes of type character).
#'
#' @author
#' \strong{unicol}, 2023-07-12.
#'
#' @source
#' Color definitions are based on Vanderbilt's
#' \href{https://brand.vanderbilt.edu/color/}{brand style guide}.
#'
#' @examples
#' vanderbilt_1
#' unikn::seecol(vanderbilt_1, main = "Vanderbilt University 1 (core colors)") # view color palette
#'
#' @family U.S. university color palettes
#'
#' @seealso
#' \code{\link{vanderbilt_2}} for neutral colors of Vanderbilt University;
#' \code{\link{vanderbilt_3}} for saturated colors of Vanderbilt University;
#' \code{\link{seecol}} for viewing and comparing color palettes;
#' \code{\link{usecol}} for using color palettes;
#' \code{\link{simcol}} for finding similar colors;
#' \code{\link{newpal}} for defining new color palettes;
#' \code{\link{grepal}} for finding named colors.
#'
#' @export
vanderbilt_1 <- unikn::newpal(col = c("#FEEEB6", "#CFAE70",
"#1C1C1C", "#FFFFFF"),
names = c("vanderbilt_metallic gold", "vanderbilt_flat_gold",
"vanderbilt_black", "white"),
as_df = FALSE)
# - vanderbilt_2: Neutral colors of Vanderbilt University -------
#' Neutral colors of Vanderbilt University, USA
#'
#' \code{vanderbilt_2} provides the four neutral colors
#' of the \href{https://www.vanderbilt.edu/}{Vanderbilt University}, USA.
#'
#' The 4 neutral colors are
#' \code{"vanderbilt_dark_grey"} (defined as HEX #777777),
#' \code{"vanderbilt_light_gery"} (defined as HEX #E4E4E4),
#' \code{"vanderbilt_sand"} (defined as HEX #E0D5C0), and
#' \code{"vanderbilt_cream"} (defined as HEX #F5F3EF).
#'
#' \code{vanderbilt_2} uses the HEX color definitions.
#'
#' @return
#' A named vector of colors (HEX/HTML codes of type character).
#'
#' @author
#' \strong{unicol}, 2023-07-12
#'
#' @source
#' Color definitions are based on
#' \href{https://brand.vanderbilt.edu/color/}{Vanderbilt's brand style guide}.
#'
#' @examples
#' vanderbilt_2
#' unikn::seecol(vanderbilt_2, main = "Vanderbilt University 2 (neutral)") # view color palette
#'
#' @family U.S. university color palettes
#'
#' @seealso
#' \code{\link{vanderbilt_1}} for core colors of Vanderbilt University;
#' \code{\link{vanderbilt_3}} for saturated colors of Vanderbilt University;
#' \code{\link{seecol}} for viewing and comparing color palettes;
#' \code{\link{usecol}} for using color palettes;
#' \code{\link{simcol}} for finding similar colors;
#' \code{\link{newpal}} for defining new color palettes;
#' \code{\link{grepal}} for finding named colors.
#'
#' @export
vanderbilt_2 <- unikn::newpal(col = c("#777777", "#E4E4E4", "#E0D5C0", "#F5F3EF"),
names = c("vanderbilt_dark_grey", "vanderbilt_light_grey", "vanderbilt_sand", "vanderbilt_cream"),
as_df = FALSE)
# - vanderbilt_3: Saturated colors of Vanderbilt University ------
#' Saturated colors of the Vanderbilt University, USA
#'
#' \code{vanderbilt_3} provides the four saturated colors
#' of the \href{https://www.vanderbilt.edu/}{Vanderbilt University}, USA.
#'
#' The 4 saturated colors are
#' \code{"vanderbilt_sky"} (defined as HEX #B3C9CD),
#' \code{"vanderbilt_highlight"} (defined as HEX #ECB748),
#' \code{"vanderbilt_oak"} (defined as HEX #946E24), and
#' \code{"vanderbilt_sage"} (defined as HEX #8BA18E).
#'
#' \code{vanderbilt_3} uses the HEX color definitions.
#'
#' @return
#' A named vector of colors (HEX/HTML of type character).
#'
#' @author
#' \strong{unicol}, 2023-07-12.
#'
#' @source
#' Color definitions are based on
#' \href{https://brand.vanderbilt.edu/color/}{Vanderbilt's brand style guide}.
#'
#' @examples
#' vanderbilt_3
#' unikn::seecol(vanderbilt_3, main = "Vanderbilt University 3 (saturated)") # view color palette
#'
#' @family U.S. university color palettes
#'
#' @seealso
#' \code{\link{vanderbilt_1}} for core colors of Vanderbilt University;
#' \code{\link{vanderbilt_2}} for neutral colors of Vanderbilt University;
#' \code{\link{seecol}} for viewing and comparing color palettes;
#' \code{\link{usecol}} for using color palettes;
#' \code{\link{simcol}} for finding similar colors;
#' \code{\link{newpal}} for defining new color palettes;
#' \code{\link{grepal}} for finding named colors.
#'
#' @export
vanderbilt_3 <- unikn::newpal(col = c("#B3C9CD", "#ECB748", "#946E24", "#8BA18E"),
names = c("vanderbilt_sky", "vanderbilt_highlight", "vanderbilt_oak", "vanderbilt_sage"),
as_df = FALSE)
## Check:
# unikn::seecol(vanderilt_1, main = "Core colors of the Vanderbilt University", col_bg = "white")
# unikn::seecol(vanderbilt_2, main = "Neutral colors of the Vanderbilt University")
# unikn::seecol(vanderbilt_3, main = "Saturated colors of the Vanderbilt University")
## ToDo: -----
# - etc. ------
## eof.------