diff options
author | Hans Goudey <h.goudey@me.com> | 2022-06-21 23:47:25 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-06-21 23:47:25 +0300 |
commit | c08fda3a6b1d05b5af76997436260fe881ff74c2 (patch) | |
tree | e2c301068edc46fcfbddba408135b5ca3b346587 /source/blender/blenlib | |
parent | 256cb68d33aec68f2c3ae20a48a115046ba5ad0e (diff) |
Cleanup: Grammar in comments
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/BLI_color.hh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/blenlib/BLI_color.hh b/source/blender/blenlib/BLI_color.hh index 98fd7d0f15d..b1b9aeb17f1 100644 --- a/source/blender/blenlib/BLI_color.hh +++ b/source/blender/blenlib/BLI_color.hh @@ -79,7 +79,7 @@ enum class eSpace { }; std::ostream &operator<<(std::ostream &stream, const eSpace &space); -/** Template class to store RGBA values with different precision, space and alpha association. */ +/** Template class to store RGBA values with different precision, space, and alpha association. */ template<typename ChannelStorageType, eSpace Space, eAlpha Alpha> class ColorRGBA { public: ChannelStorageType r, g, b, a; @@ -167,7 +167,7 @@ class ColorSceneLinear4f final : public ColorRGBA<float, eSpace::SceneLinear, Al } /** - * Convert to its byte encoded counter space. + * Convert to its byte encoded counterpart. */ ColorSceneLinearByteEncoded4b<Alpha> encode() const { @@ -179,7 +179,7 @@ class ColorSceneLinear4f final : public ColorRGBA<float, eSpace::SceneLinear, Al /** * Convert color and alpha association to premultiplied alpha. * - * Does nothing when color has already a premultiplied alpha. + * Does nothing when color already has a premultiplied alpha. */ ColorSceneLinear4f<eAlpha::Premultiplied> premultiply_alpha() const { @@ -196,7 +196,7 @@ class ColorSceneLinear4f final : public ColorRGBA<float, eSpace::SceneLinear, Al /** * Convert color and alpha association to straight alpha. * - * Does nothing when color has straighten alpha. + * Does nothing when color has straight alpha. */ ColorSceneLinear4f<eAlpha::Straight> unpremultiply_alpha() const { @@ -228,7 +228,7 @@ class ColorSceneLinearByteEncoded4b final } /** - * Convert to back to float color. + * Convert to a float color. */ ColorSceneLinear4f<Alpha> decode() const { |