% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/brain-mesh.R
\name{vertices_to_colors}
\alias{vertices_to_colors}
\title{Map atlas vertex indices to mesh colors}
\usage{
vertices_to_colors(atlas_data, n_vertices, na_colour = "#CCCCCC")
}
\arguments{
\item{atlas_data}{Data frame with region, colour, and vertices columns}

\item{n_vertices}{Number of vertices in the mesh}

\item{na_colour}{Color for vertices not in any region}
}
\value{
Character vector of colors, one per mesh vertex
}
\description{
Given a ggseg_atlas with vertices column and a brain mesh, creates a color
vector for each mesh vertex based on which region it belongs to.
}
\keyword{internal}
