Skip to content

Commit

Permalink
Merge pull request #2312 from richardeakin/rte/Color_vec3_overload
Browse files Browse the repository at this point in the history
Add missing ci::Color( vec3 ) overload.
  • Loading branch information
andrewfb authored Aug 20, 2023
2 parents e10faeb + 3a734d8 commit 9c84948
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/cinder/Color.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ class CI_API ColorT
ColorT( const ColorT<T> &src )
: r( src.r ), g( src.g ), b( src.b )
{}
ColorT( const vec3 &src )
: r( CHANTRAIT<T>::convert( src.r ) ), g( CHANTRAIT<T>::convert( src.g ) ), b( CHANTRAIT<T>::convert( src.b ) )
{}

ColorT( const char *svgColorName );

ColorT( ColorModel cm, const vec3 &v );
Expand Down

0 comments on commit 9c84948

Please sign in to comment.