Game/src/main.cpp
/**
 * Generate a vector of random colors. This is primarily used for debugging 
 * sample clusters.
 */
Generate a vector of random colors. This is primarily used for debugging
sample clusters.
Generate a vector of random colors . This is primarily used for debugging sample clusters .
std::vector<glm::vec4> GenerateColors( uint32_t numColors )
{
    std::vector<glm::vec4> colors( numColors );
    for ( auto& color : colors )
    {
        color = glm::vec4( HSVtoRGB( glm::linearRand( 0.0f, 360.0f ), glm::linearRand( 0.0f, 1.0f ), 1.0f ), 1.0f );
    }
    return colors;
}
std :: vector < glm :: vec4 > GenerateColors ( uint32_t numColors ) { std :: vector < glm :: vec4 > colors ( numColors ) ; for ( auto & color : colors ) { color = glm :: vec4 ( HSVtoRGB ( glm :: linearRand ( 0.0f , 360.0f ) , glm :: linearRand ( 0.0f , 1.0f ) , 1.0f ) , 1.0f ) ; } return colors ; }
Generate a vector of random colors.
Generate a vector of random colors .