mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-23 04:25:42 +02:00
particle/ramp: use log framework
This commit is contained in:
parent
1c708975eb
commit
a588c78e57
1 changed files with 4 additions and 2 deletions
|
@ -40,8 +40,10 @@ instantiate(const struct particle *particle, const struct tag_set *tags)
|
|||
double progress = (double)value / (max - min);
|
||||
|
||||
size_t idx = progress * ramp->count;
|
||||
printf("ramp: value: %lu, min: %lu, max: %lu, progress: %f, idx: %zu\n",
|
||||
value, min, max, progress, idx);
|
||||
/*
|
||||
* printf("ramp: value: %lu, min: %lu, max: %lu, progress: %f, idx: %zu\n",
|
||||
* value, min, max, progress, idx);
|
||||
*/
|
||||
assert(idx >= 0 && idx < ramp->count);
|
||||
|
||||
struct particle *p = ramp->particles[idx];
|
||||
|
|
Loading…
Add table
Reference in a new issue