From finance to colours

,

Hi,

I don’t know if what I’m trying to do is difficult or easy.. I’m a grasshopper specialist but a TD beginner.

I have some indicators from yfinance of how the bitcoin is going on and I want to use these data for colorize an image.

What I envision is my camera recording with video device in and on top in multiply or similar some columns of colors. The columns are side by side and each column has its own color based on the price of bitcoin if its high it’s red, if the price is down is blue (high and down are calculated respect to the average of the 24 past hours kind of).

So I though the right path was with trail which was basically doing what I want to bring on cavas but I’m stucked somehow. I’ve created some movement in greyscale but I’m not able to colorize it.

Could you please help me?

Many thanks,

Michele.

Hi @democrito

not looking further into the settings of your CHOP to TOP, you most likely want to set the Pixel Format parameter on the Common page of the CHOP to TOP to “8 bit fixed” or similar. By default, and with reading only a single channel, the output of the CHOP to TOP will be a single color channel (32-bit float (Mono)) and hence when using the Lookup TOP, the result will also be mono only.

Have a look at the OP Snippets for both the CHOP to TOP and the Lookup TOP for some more examples on how to use them.

cheers
Markus