izzi
SVG SUBSET C++ API
Loading...
Searching...
No Matches
svg::color_qf Struct Reference

#include <a60-svg-color.h>

Public Types

using ftype = float
 

Public Member Functions

 color_qf ()=default
 Value between 0.0 (black) and 1.0.
 
 color_qf (const color e)
 
 color_qf (const color_qf &)=default
 
 color_qf (const color_qi &cqi)
 
 color_qf (ftype vh, ftype vs, ftype vv)
 
color_qfoperator= (const color_qf &)=default
 
const color_qi to_color_qi ()
 Back to RGB https://www.rapidtables.com/convert/color/hsv-to-rgb.html.
 

Static Public Member Functions

static string to_string (color_qf s)
 

Public Attributes

ftype h
 
ftype s
 Hue degree between 0.0 and 360.0.
 
ftype v
 Saturation between 0.0 (gray) and 1.0.
 

Detailed Description

Color quantified as floating point HSV components in the range [0,1].

https://web.archive.org/web/20150303174723/ http://en.literateprograms.org/RGB_to_HSV_color_space_conversion_(C)

Definition at line 536 of file a60-svg-color.h.

Member Typedef Documentation

◆ ftype

using svg::color_qf::ftype = float

Definition at line 538 of file a60-svg-color.h.

Constructor & Destructor Documentation

◆ color_qf() [1/5]

svg::color_qf::color_qf ( )
default

Value between 0.0 (black) and 1.0.

◆ color_qf() [2/5]

svg::color_qf::color_qf ( const color_qf & )
default
+ Here is the call graph for this function:

◆ color_qf() [3/5]

svg::color_qf::color_qf ( ftype vh,
ftype vs,
ftype vv )
inline

Definition at line 550 of file a60-svg-color.h.

◆ color_qf() [4/5]

svg::color_qf::color_qf ( const color_qi & cqi)
inline

Definition at line 553 of file a60-svg-color.h.

+ Here is the call graph for this function:

◆ color_qf() [5/5]

svg::color_qf::color_qf ( const color e)
inline

Definition at line 612 of file a60-svg-color.h.

+ Here is the call graph for this function:

Member Function Documentation

◆ operator=()

color_qf & svg::color_qf::operator= ( const color_qf & )
default
+ Here is the call graph for this function:

◆ to_color_qi()

const color_qi svg::color_qf::to_color_qi ( )
inline

◆ to_string()

static string svg::color_qf::to_string ( color_qf s)
inlinestatic

Definition at line 619 of file a60-svg-color.h.

+ Here is the call graph for this function:

Member Data Documentation

◆ h

ftype svg::color_qf::h

Definition at line 540 of file a60-svg-color.h.

◆ s

ftype svg::color_qf::s

Hue degree between 0.0 and 360.0.

Definition at line 541 of file a60-svg-color.h.

◆ v

ftype svg::color_qf::v

Saturation between 0.0 (gray) and 1.0.

Definition at line 542 of file a60-svg-color.h.


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