Skip to content

begin and end ranges for palette #56

Description

@dcooley

Add arguments to specify the range of the palette you want to use

For example

colour_values( 1:256, begin = 0.0, end = 0.75 )

will only use rows 1 to 192 (256 * 0.75) of the palette

similar to doing

pal <- colourvalues::get_palette( "viridis" )[1:192, ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions