# db&w documentation wiki

finest software | finest docs

tools:ratio

# Differences

This shows you the differences between two versions of the page.

 tools:ratio [2013/10/17 15:25]lightwolf created tools:ratio [2013/10/17 16:26] (current)lightwolf [Outputs] 2013/10/17 16:26 lightwolf [Outputs] 2013/10/17 15:32 lightwolf 2013/10/17 15:29 lightwolf 2013/10/17 15:25 lightwolf created Next revision Previous revision 2013/10/17 16:26 lightwolf [Outputs] 2013/10/17 15:32 lightwolf 2013/10/17 15:29 lightwolf 2013/10/17 15:25 lightwolf created Line 1: Line 1: - {{ :dbw:tools:ratiogui.png?nolink|}} ====== Ratio ====== ====== Ratio ====== + The Ratio node takes an input colour and/or scalar and splits it into two values defined by a ratio. + + Both a colour and a scalar can be split at the same time using an identical ratio ===== Controls===== ===== Controls===== + {{ :dbw:tools:ratiogui.png?nolink|}} + * **Colour** The colour to split into two values + * **Scalar** The scalar to split into two values + * **Ratio** This percentage determines how much of the colour/scalar is returned as the main component. What is left is returned as the remainder. ===== Inputs===== ===== Inputs===== - {{ :dbw:tools:rationode.png?nolink|}} + * **Vector** This is the vector/colour to split + * **Scalar** The scalar to split + * **Ratio** The ratio, as explained above. + + ===== Outputs===== + {{ :dbw:tools:rationode.png?nolink|}} + * **Vector** The input vector multiplied by the ratio + * **RemColour** The input colour multiplied by the remainder of the ratio (what's left to make it 100%) + * **Scalar** The input scalar multiplied by the ratio + * **RemScalar** The input scalar multiplied by the remainder of the ratio 