Package 'RanglaPunjab'

Title: Displays Palette of 5 Colors
Description: Displays palette of 5 colors based on photos depicting the unique and vibrant culture of Punjab in Northern India. Since Punjab translates to ``Land of 5 Rivers'' there are 5 colors per palette. If users need more than 5 colors, they can merge 2 to 3 palettes to create their own color-combination, or they can cherry-pick their own custom colors. Users can view up to 3 palettes together. Users can also list all the palette choices. And last but not least, users can see the photo that inspired a particular palette.
Authors: Sonia Ahluwalia [aut, cre]
Maintainer: Sonia Ahluwalia <[email protected]>
License: GPL-2
Version: 2.3.4
Built: 2024-12-07 06:57:26 UTC
Source: CRAN

Help Index


Cherry Pick Palette — Getting Facelift

Description

This function allows user to cherry pick colors from 2 to 3 palettes

Usage

CherryPickPalette(name, name2 = NULL, name3 = NULL, ...)

Arguments

name

Name of 1st palette

name2

Name of 2nd palette

name3

Name of 3nd (optional) palette

...

Numeric, complex, or logical vectors

Value

user-defined palette of colors

Examples

CherryPickPalette("GoldenTemple","AmritsariPedeWaliLassi")
CherryPickPalette("BiryaniRice","Kulfi","Haveli2")

List Palette

Description

This function returns list of all palettes

Usage

ListPalette()

Value

List of palettes

Examples

ListPalette()

Merge Palette

Description

This function takes 2 or 3 palettes and returns a palette of 10 or 15 colors (in the unlikely event there are duplicates, then return less than 10 or 15)

Usage

MergePalette(name, name2 = NULL, name3 = NULL, ...)

Arguments

name

Name of 1st palette

name2

Name of 2nd palette

name3

Name of 3nd (optional) palette

...

Numeric, complex, or logical vectors

Value

Vector of 10 or 15 color values (in the unlikely event there are duplicates, then return less than 10 or 15 colors)

Examples

MergePalette("AmritsariKulcha", "Phulkari2")
MergePalette("Gidha", "Jutti2")
MergePalette("FieldsOfPunjab","GoldenTemple2","Jutti3")

Paint Palette

Description

This function paints an image of up to 3 palettes

Usage

PaintPalette(name = NULL, name2 = NULL, name3 = NULL, ...)

Arguments

name

Name of 1st palette

name2

Name of 2nd (optional) palette

name3

Name of 3rd (optional) palette

...

Numeric, complex, or logical vectors

Value

image of colors and description

Examples

PaintPalette("Pindh")
PaintPalette("FieldsOfPunjab","Jutti")
PaintPalette("FieldsOfPunjab","Jutti","Paranda")

Palette of 5 Colors

Description

This function returns a palette of 5 colors

Usage

RanglaPunjab(name = NULL, ...)

Arguments

name

Palette name

...

Numeric, complex, or logical vectors

Value

Vector of 5 color values

Examples

RanglaPunjab("GoldenTemple")
RanglaPunjab("SohniMahiwal")
RanglaPunjab("Teej")

Show Palette Photo

Description

This function shows photo that inspired a palette

Usage

ShowPalettePhoto(name = NULL, ...)

Arguments

name

palette name

...

Numeric, complex, or logical vectors

Value

image of reference photo with palette

Examples

ShowPalettePhoto("GoldenTemple")
ShowPalettePhoto("Kulfi")
ShowPalettePhoto("AmritsariPedeWaliLassi")