Difference between revisions of "Template:Color"

From Synfig Studio :: Documentation
Jump to: navigation, search
m
m
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if: {{{1}}}
+
{{#if:{{{1|}}}  
   | {{#if: {{{2}}}
+
   |{{#if:{{{2|}}}  
     | {{{1}}} - {{{2}}}
+
     | <table style="width:95%; height:16px; background: linear-gradient(90deg, #{{{1}}} 10%, #{{{2}}} 100%); border-style: solid; border-width: 1px;"><tr><td>&nbsp;</td></tr></table>
     | jenom {{{1}}}
+
     | <table style="width:95%; height:16px; background: #{{{1}}}; border-style: solid; border-width: 1px;"><tr><td>&nbsp;</td></tr></table>
  }}
+
    }}
   | nic
+
   |{{#if:{{{2|}}}
}}
+
    | <table style="width:95%; height:16px; background: #{{{2}}}; border-style: solid; border-width: 1px;"><tr><td>&nbsp;</td></tr></table>
 +
    | <table style="width:95%; height:16px; border-style: solid; border-width: 1px;"><tr><td>&nbsp;</td></tr></table>
 +
    }}
 +
}}<noinclude>
 +
Template for using in examples of tables from {{l|Parameters Panel}}.
 +
 
 +
Use it for view colors or gradients. Value of colors must be presented as RGB without sharp char! In ex. for cell with solid color silver (#c8c8c8) <nowiki>{{Color|c8c8c8}}</nowiki>
 +
 
 +
{{Color|c8c8c8}}
 +
 
 +
For gradient from silver (#c8c8c8) to red (#ff0000) use <nowiki>{{Color|c8c8c8|ff0000}}</nowiki>
 +
 
 +
{{Color|c8c8c8|ff0000}}
 +
 
 +
</noinclude>

Latest revision as of 12:12, 2 March 2017

 

Template for using in examples of tables from Parameters Panel.

Use it for view colors or gradients. Value of colors must be presented as RGB without sharp char! In ex. for cell with solid color silver (#c8c8c8) {{Color|c8c8c8}}

 

For gradient from silver (#c8c8c8) to red (#ff0000) use {{Color|c8c8c8|ff0000}}