MakePalette: Make your palette of colors

View source: R/MakePalette.R

MakePaletteR Documentation

Make your palette of colors

Description

Creates a color palette from an image, using the KMeans algorithm

Usage

MakePalette(photo, n = 4)

Arguments

photo

Image location path. It can also be a URL address.

n

Number of elements to be generated in the color palette. The default value is 4.

Value

A palette of colors

Examples

MakePalette(system.file("extdata", "picture02.jpg", package="MakeYourPalette"))
MakePalette(system.file("extdata", "picture04.png", package="MakeYourPalette"))
MakePalette(system.file("extdata", "picture06.png", package="MakeYourPalette"))


MakeYourPalette documentation built on June 17, 2022, 9:06 a.m.