-
Notifications
You must be signed in to change notification settings - Fork 12
/
Carleton.R
79 lines (61 loc) · 2.19 KB
/
Carleton.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
## Carleton.R | 2023 08 24
## Colors of the University of Carleton, Canada
## --------------------------------------------
# Information: ------
# cur_pals: "carleton" (1)
# inst: "University of Carleton" (in English)
# inst_alt: "University of Carleton"
# country: Canada
# URL: "https://carleton.ca"
# Color source:
# URL: <https://www.carleton.edu/communications/resources/college-wordmark-identity-graphics/college-colors/#:~:text=The%20College%27s%20official%20colors%20are%20maize%20and%20blue.>
# Last check: 2023-07-12
# Colors: ------
# Color palette(s):
# - carleton: All colors ------
#' Colors of the University of Carleton, Canada
#'
#' \code{carleton} provides the two official colors
#' of the \href{https://carleton.ca/}{University of Carleton}, Canada.
#'
#' The 2 official colors are
#' \code{maize} (defined as Pantone 122,
#' and approximated by RGB 255/223/79, or HEX #FFDF4F), and
#' \code{Carleton blue} (defined as Pantone 294,
#' and approximated by RGB 0/48/105, or HEX #003069).
#'
#' \code{carleton} 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 the
#' \href{https://www.carleton.edu/communications/resources/college-wordmark-identity-graphics/college-colors/}{University of Carleton's website}.
#'
#' @examples
#' carleton
#' unikn::seecol(carleton,
#' main = "The colors of the University of Carleton, CA") # view color palette
#'
#' @family Canadian university color palettes
#'
#' @seealso
#' \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
carleton <- unikn::newpal(col = c("#FFDF4F", "#003069"),
names = c("maize", "Carleton blue"),
as_df = FALSE)
# # Check:
## unikn::seecol(carleton, main = "Official colors of the University of Carleton, CA", col_bg = "white")
## ToDo: --------
# - etc.
## eof. ----------