Difference between revisions of "Template:Color"
From Synfig Studio :: Documentation
m |
m |
||
Line 1: | Line 1: | ||
{{#if:{{{1|}}} | {{#if:{{{1|}}} | ||
|{{#if:{{{2|}}} | |{{#if:{{{2|}}} | ||
− | | <table style="width:95%; height:16px; background: linear-gradient(90deg, #{{{1}}} 10%, #{{{2}}} 100%);" border=" | + | | <table style="width:95%; height:16px; background: linear-gradient(90deg, #{{{1}}} 10%, #{{{2}}} 100%);" border="1"><tr><td> </td></tr></table> |
− | | <table style="width:95%; height:16px; background: #{{{1}}};" border=" | + | | <table style="width:95%; height:16px; background: #{{{1}}};" border="1"><tr><td> </td></tr></table> |
}} | }} | ||
|{{#if:{{{2|}}} | |{{#if:{{{2|}}} | ||
− | | <table style="width:95%; height:16px; background: #{{{2}}};" border=" | + | | <table style="width:95%; height:16px; background: #{{{2}}};" border="1"><tr><td> </td></tr></table> |
− | | <table style="width:95%; height:16px;" border=" | + | | <table style="width:95%; height:16px;" border="1"><tr><td> </td></tr></table> |
}} | }} | ||
}}<noinclude> | }}<noinclude> |
Revision as of 12:07, 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}}