-
Notifications
You must be signed in to change notification settings - Fork 12
/
Arizona.R
195 lines (168 loc) · 6.01 KB
/
Arizona.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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
## Arizona.R | 2023 09 22
## Colors of the Arizona State University, USA
## -------------------------------------------
# Information: ----
# cur_pals: "asu_1", "asu_2", "asu_3" (3)
# inst: "Arizona State University"
# country: USA
# inst_URL: "https://www.asu.edu"
# Color source:
# color_URL: https://brandguide.asu.edu/brand-elements/design/color
# Colors: ------
# Color definitions:
# Color palette(s):
# - asu_1: Primary colors of ASU ----
#' Primary colors of the Arizona State University, USA
#'
#' \code{asu_1} provides the four primary colors
#' of the \href{https://www.asu.edu}{Arizona State University}, USA.
#'
#' The 4 primary colors are
#' \code{"ASU maroon"} (defined as HEX #8C1D40),
#' \code{"ASU gold"} (defined as HEX #FFC627),
#' \code{"black"} (defined as HEX #000000), and
#' \code{"white"} (defined as HEX #FFFFFF).
#'
#' \code{asu_1} uses the HEX color definitions.
#'
#' @return
#' A names vector of colors (HEX/HTML codes of type character).
#'
#' @author
#' \strong{unicol}, 2023-07-13.
#'
#' @source
#' Color definitions are based on \href{https://www.asu.edu}{ASU}'s
#' \href{https://brandguide.asu.edu/brand-elements/design/color}{brand guide}.
#'
#' @examples
#' asu_1
#' unikn::seecol(asu_1, col_bg = "gray90",
#' main = "The colors of Arizona State University (ASU)")
#'
#' @family U.S. university color palettes
#'
#' @seealso
#' \code{\link{asu_2}} for ASU's secondary colors;
#' \code{\link{asu_3}} for ASU's grayscale colors;
#' \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
asu_1 <- unikn::newpal(col = c("#8C1D40", "#FFC627", "#000000", "#FFFFFF"),
names = c("ASU maroon", "ASU gold", "black", "white"),
as_df = FALSE)
# - asu_2: Secondary colors of ASU -----
#' Secondary colors of the Arizona State University, USA
#'
#' \code{asu_2} provides the seven secondary colors
#' of the \href{https://www.asu.edu}{Arizona State University}, USA.
#'
#' The 7 secondary colors are
#' \code{"ASU green"} (defined as HEX #78BE20),
#' \code{"ASU blue"} (defined as HEX #00A3E0),
#' \code{"ASU orange"} (defined as HEX #FF7F32),
#' \code{"ASU gray"} (defined as HEX #747474),
#' \code{"ASU copper"} (defined as HEX #Af674B),
#' \code{"ASU turquoise"} (defined as HEX #4AB7C4), and
#' \code{"ASU pink"} (defined as HEX #E74973).
#'
#' \code{asu_2} uses the HEX color definitions.
#'
#' @return
#' A names vector of colors (HEX/HTML codes of type character).
#'
#' @author
#' \strong{unicol}, 2320-07-13.
#'
#' @source
#' Color definitions are based on \href{https://www.asu.edu}{ASU}'s
#' \href{https://brandguide.asu.edu/brand-elements/design/color}{brand guide}.
#'
#' @examples
#' asu_2
#' unikn::seecol(asu_2,
#' main = "Secondary colors of Arizona State University (ASU)")
#'
#' @family U.S. university color palettes
#'
#' @seealso
#' \code{\link{asu_1}} for ASU's primary colors;
#' \code{\link{asu_3}} for ASU's grayscale colors;
#' \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
asu_2 <- unikn::newpal(col = c("#78BE20", "#00A3E0", "#FF7F32", "#747474",
"#Af674B", "#4AB7C4", "#E74973"),
names = c("ASU green", "ASU blue","ASU orange", "ASU gray",
"ASU copper", "ASU turquoise", "ASU pink"),
as_df = FALSE)
# - asu_3: Grayscale colors of ASU -----
#' Grayscale colors of the Arizona State University, USA
#'
#' \code{asu_3} provides the nine grayscale colors
#' of the \href{https://www.asu.edu}{Arizona State University}, USA.
#'
#' The 9 grayscale colors are
#' \code{"black"} (defined as HEX #000000),
#' \code{"gray 1"} (defined as HEX #191919),
#' \code{"gray 2"} (defined as HEX #484848),
#' \code{"ASU gray"} (defined as HEX #747474),
#' \code{"gray 4"} (defined as HEX #BFBFBF),
#' \code{"gray 5"} (defined as HEX #D0D0D0),
#' \code{"gray 6"} (defined as HEX #E8E8E8),
#' \code{"gray 7"} (defined as HEX #FAFAFA), and
#' \code{"white"} (defined as HEX #FFFFFF).
#'
#' \code{asu_3} uses the HEX color definitions.
#'
#' @return
#' A names vector of colors (HEX/HTML codes of type character).
#'
#' @author
#' \strong{unicol}, 2320-07-13.
#'
#' @source
#' Color definitions are based on \href{https://www.asu.edu}{ASU}'s
#' \href{https://brandguide.asu.edu/brand-elements/design/color}{brand guide}.
#'
#' @examples
#' asu_3
#' unikn::seecol(asu_3, col_bg = "gray95",
#' main = "Grayscale colors of the Arizona State University (ASU)")
#'
#' @family U.S. university color palettes
#'
#' @seealso
#' \code{\link{asu_1}} for ASU's primary colors;
#' \code{\link{asu_2}} for ASU's secondary colors;
#' \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
asu_3 <- unikn::newpal(col = c("#000000",
"#191919", "#484848",
"#747474",
"#BFBFBF", "#D0D0D0",
"#E8E8E8", "#FAFAFA",
"#FFFFFF"),
names = c("black",
"gray 1", "gray 2",
"ASU gray",
"gray 4", "gray 5",
"gray 6", "gray 7",
"white"),
as_df = FALSE)
## ToDo: -----
# -etc. ----
## eof. ----