Color

TOC

Description

Library thats implement color.

Install

  1. Clone the project from github. Use master branch.
    Examples:
    • Windows : git clone https://github.com/dmilos/color.git c:\my-work-folder\my-git-folder\color
    • Linux : git clone https://github.com/dmilos/color.git /home/my-user-name/my-work-folder/my-git-folder/color
  2. Optional: Copy src folder in some for your suitable place.
    If you want to use directly from place where you clone color project you may skip this step.
  3. Optional: Put src in your path.
    If you copy src in someplace that is already in your path then skip this step.
  4. Optional: Reduce file count.
Done!

API

Starting points:

Using

Include color.hpp situated in src/color directory.

Here is "Hello World" example:
#include <iostream>
#include <iomanip>

#include "color/color.hpp"

int main( int argc, char *argv[] )
 {
  color::rgb<double> r;

  r = ::color::constant::lavender_type{};

  std::cout << "Red: " << r[0] << ",  Green: " << r[1] << ", Blue: " << r[2] << std::endl;

  return EXIT_SUCCESS;
 }

Examples

In the root of the project there is folder example.
It's contain one-file-examples e.g all examples are in form that do not need additional file to be compiled i.e self-sufficient examples.
make_all.sh will compile all examples by using g++.

Glossary

Glossary

FAQ

Frequently Asked Questions

Links


index     bound     color     FAQ     Format     Glossary     Macros     Memory consumption     Model     Operators
Namespaces: akin     category    check    compare     constants    fix    get     make    Name spaces    operations     place    set    trait     type