% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/maxent_palette.R
\name{maxent_color_ramp}
\alias{maxent_color_ramp}
\title{Generate the Maxent Canonical Color Ramp}
\usage{
maxent_color_ramp(n = 1020L, mode = "plain")
}
\arguments{
\item{n}{Integer: number of colors to generate (default 1020, matching the
Java implementation).}

\item{mode}{Character: one of \code{"plain"} (default),
\code{"log"} (logarithmic spacing), \code{"blackandwhite"}
(greyscale, white = high, black = low), or \code{"redandyellow"}
(red–yellow ramp).}
}
\value{
Character vector of \code{n} hex color strings of the form
  \code{"#RRGGBB"}.
}
\description{
Produces a vector of hex color strings matching the color ramp used by the
Java Maxent software (\code{density/Display.java::showColor()}).  The
default palette cycles Red → Yellow → Green → Cyan → Blue across 1020
steps, with higher values rendered as red and lower values as blue.
}
\examples{
pal <- maxent_color_ramp(1020)
pal[1]     # "#FF0000"  (max value → red)
pal[510]   # near "#00FF00" (mid-point → green)
pal[1020]  # "#0000FF"  (min value → blue)
}
