-
Notifications
You must be signed in to change notification settings - Fork 12
/
Boston_University.R
74 lines (56 loc) · 1.75 KB
/
Boston_University.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
## Boston_University.R | 2023 08 24
## Colors of Boston University, USA
## --------------------------------
# Information: ------
# cur_pals: "bu" (1)
# inst: "Boston University"
# country: USA
# URL: "https://www.bu.edu"
# color source:
# URL: <https://www.bu.edu/brand/guidelines/design/colors/>
# Last check: 2023-07-04
# Color palette(s):
# - bu: Primary colors ------
#' Primary colors of Boston University, USA
#'
#' \code{bu} provides the two primary colors
#' of \href{https://www.bu.edu}{Boston University}, USA.
#'
#' BU's two primary colors are
#' \code{"BU red"} (defined as RGB 204 0 0, CMYK 0 100 75 4, HEX CC0000) and
#' \code{"BU black"} (defined as RGB 45 41 38, CMYK 63 62 59 94, HEX 2D2926).
#'
#' \code{bu} uses the HEX color definition.
#'
#' @return
#' A named vector of colors (HEX/HTML codes of type character).
#'
#' @author
#' \strong{unicol}, 2023-07-04.
#'
#' @source
#' The color definitions are based on BU's
#' \href{https://www.bu.edu/brand/guidelines/design/colors/}{brand guidelines}.
#'
#' @examples
#' bu
#' unikn::seecol(bu, main = "Primary colors of Boston University") # view color palette
#'
#' @family U.S. 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
bu <- unikn::newpal(col = c("#CC0000", "#2D2926"),
names = c("BU red", "BU black"),
as_df = FALSE)
# # Check:
# unikn::seecol(bu, main = "Primary colors of Boston University", col_bg = "white")
## ToDo: --------
# - etc.
## eof. ----------