diff options
author | pacien | 2018-01-09 16:14:18 +0100 |
---|---|---|
committer | pacien | 2018-01-09 16:14:18 +0100 |
commit | 38195a70192301e7df5b69bf2266a04a0b90a532 (patch) | |
tree | 2ad004884b1d5348e7b0812e514293eda3cd7d66 /src/painter/color.c | |
parent | 76cb6ee14cb72eba8df8112604d9c2e8598d2448 (diff) | |
download | morpher-master.tar.gz |
Signed-off-by: pacien <pacien.trangirard@pacien.net>
Diffstat (limited to 'src/painter/color.c')
-rw-r--r-- | src/painter/color.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/painter/color.c b/src/painter/color.c index 65c4f20..bf03359 100644 --- a/src/painter/color.c +++ b/src/painter/color.c | |||
@@ -1,6 +1,13 @@ | |||
1 | #include "painter/color.h" | 1 | #include "painter/color.h" |
2 | #include <math.h> | 2 | #include <math.h> |
3 | 3 | ||
4 | /** | ||
5 | * File: color.c | ||
6 | * | ||
7 | * Author: | ||
8 | * Pacien TRAN-GIRARD | ||
9 | */ | ||
10 | |||
4 | static inline ColorComponent blend_component(ColorComponent origin, ColorComponent target, TimeVector frame) { | 11 | static inline ColorComponent blend_component(ColorComponent origin, ColorComponent target, TimeVector frame) { |
5 | return (ColorComponent) round(sqrt((TIME_UNIT - frame) * pow(origin, 2) + frame * pow(target, 2))); | 12 | return (ColorComponent) round(sqrt((TIME_UNIT - frame) * pow(origin, 2) + frame * pow(target, 2))); |
6 | } | 13 | } |