Ruby Help Needed Please
Posted: Sat Apr 19, 2014 5:14 am
Hi,
I am trying to make an XY scope that has RGB color capability - think a color version of Asteroids (and yes I have seen a Flowstone Asteroids clown and it is quite nice).
My needs are slightly different. I need to make each line from sample to sample be colored instead of the entire array (graphic object in this case) be one color. For example imagine a circle that starts red at 12noon and changes color thru orange, yellow, green, blue. purple, etc. till the circle reached 12midnight.
In my FSM if the circle frequency (formed by two sin oscillators 90 degrees out of phase) is the same as the color signals the color would vary around the circle with a 1 to 1 correspondents, faster color "modulation" would cause the circle to have more color cycles, lower frequency less color cycles.
I can get the entire image / circle to change, but not change color as it draws out the circle. The far right XY Scope (in the FSM) works, it is made from other FSMs, but only colors the entire circle / image once per sample period (say 512 samples). The other XY Scope (written in RUBY) produces an image but no color variations at all, only random black and white frames.
Note that the Scope must have Streaming data for all of the XY and RGB inputs - the way a real o-scope works.
Thanks for any help you can give... I have bitten my nails off trying to solve this
- with no luck, and short nails as the only result!
Aron
I am trying to make an XY scope that has RGB color capability - think a color version of Asteroids (and yes I have seen a Flowstone Asteroids clown and it is quite nice).
My needs are slightly different. I need to make each line from sample to sample be colored instead of the entire array (graphic object in this case) be one color. For example imagine a circle that starts red at 12noon and changes color thru orange, yellow, green, blue. purple, etc. till the circle reached 12midnight.
In my FSM if the circle frequency (formed by two sin oscillators 90 degrees out of phase) is the same as the color signals the color would vary around the circle with a 1 to 1 correspondents, faster color "modulation" would cause the circle to have more color cycles, lower frequency less color cycles.
I can get the entire image / circle to change, but not change color as it draws out the circle. The far right XY Scope (in the FSM) works, it is made from other FSMs, but only colors the entire circle / image once per sample period (say 512 samples). The other XY Scope (written in RUBY) produces an image but no color variations at all, only random black and white frames.
Note that the Scope must have Streaming data for all of the XY and RGB inputs - the way a real o-scope works.
Thanks for any help you can give... I have bitten my nails off trying to solve this
Aron