vg
tools for working with variation graphs
Public Member Functions | Public Attributes | Private Attributes | List of all members
vg::Colors Class Reference

#include <colors.hpp>

Public Member Functions

 Colors (void)
 
 Colors (int seed_val)
 
 ~Colors (void)
 
string hashed (const string &str)
 
string random (void)
 

Public Attributes

const vector< string > colors = { "/dark28/1", "/dark28/2", "/dark28/3", "/dark28/4", "/dark28/5", "/dark28/6", "/dark28/7", "/dark28/8" }
 

Private Attributes

mt19937 rng
 

Detailed Description

Generates random GraphViz colors seeded by strings. Used for colorizing paths in visualizations.

Constructor & Destructor Documentation

◆ Colors() [1/2]

vg::Colors::Colors ( void  )
inline

◆ Colors() [2/2]

vg::Colors::Colors ( int  seed_val)
inline

◆ ~Colors()

vg::Colors::~Colors ( void  )
inline

Member Function Documentation

◆ hashed()

string vg::Colors::hashed ( const string &  str)
inline

◆ random()

string vg::Colors::random ( void  )
inline

Member Data Documentation

◆ colors

const vector<string> vg::Colors::colors = { "/dark28/1", "/dark28/2", "/dark28/3", "/dark28/4", "/dark28/5", "/dark28/6", "/dark28/7", "/dark28/8" }

◆ rng

mt19937 vg::Colors::rng
private

The documentation for this class was generated from the following file: