Skip to content

Commit

Permalink
Fix sample codes and close #11
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki-koyama authored Jul 6, 2018
1 parent bee0c71 commit ff961f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ int main()
const double value = 0.5;
// Get the color as a 3-dimensional double-valued vector. Here, Viridis is specified as a colormap.
const Eigen::Vector3d color = tinycolormap::GetColor(value, tinycolormap::ColormapType::Viridis);
const tinycolormap::Color color = tinycolormap::GetColor(value, tinycolormap::ColormapType::Viridis);
// Print the RGB values. Each value is in [0, 1].
std::cout << "r = " << color(0) << ", g = " << color(1) << ", b = " << color(2) << std::endl;
std::cout << "r = " << color.r() << ", g = " << color.g() << ", b = " << color.b() << std::endl;
return 0;
}
Expand Down

0 comments on commit ff961f2

Please sign in to comment.