Proteopedia:DIY:Templates
From Proteopedia
(Difference between revisions)
(New page: Templates as a tool) |
(moved some good template and code examples here) |
||
Line 1: | Line 1: | ||
Templates as a tool | Templates as a tool | ||
+ | |||
+ | |||
+ | ==Surface fade links and buttons== | ||
+ | <Structure load='Insert PDB code or filename here' size='350' frame='true' align='right' caption='.' scene='60/607777/Surf_test/1' pspeed='8' /> | ||
+ | |||
+ | |||
+ | ===Template Versions Ready to Use Anywhere Easily=== | ||
+ | |||
+ | {{Link FadeSurfaceBasic}} (basic) | ||
+ | |||
+ | {{Link FadeSurface}} (with fancy cartoons) | ||
+ | |||
+ | {{Link Toggle FancyCartoonHighQualityView}} | ||
+ | |||
+ | {{Link FadeInSurface}} | ||
+ | |||
+ | As Buttons:<br/> | ||
+ | |||
+ | {{Button FadeSurfaceBasic}} (basic) | ||
+ | |||
+ | {{Button FadeSurface}} (with fancy cartoons) | ||
+ | |||
+ | {{Button FadeInSurface}} | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===Surface Fade Code-in-Page Versions=== | ||
+ | |||
+ | While not templates, carry out similar functions as the `Surface Fade` templates and may be useful for further development or as examples of using Jmol coding in Proteopedia pages. | ||
+ | |||
+ | <jmol> | ||
+ | <jmolLink> | ||
+ | <script> var a = [1,2,3,4,5,6,7,8]; for(var i IN a) {isosurface translucent @i; delay 0.4;} | ||
+ | </script> | ||
+ | <text>Fade surface to invisible</text> | ||
+ | </jmolLink> | ||
+ | </jmol> (basic) | ||
+ | |||
+ | <jmol> | ||
+ | <jmolLink> | ||
+ | <script> set ribbonborder on; set antialiasdisplay on; var a = [1,2,3,4,5,6,7,8]; for(var i IN a) {isosurface translucent @i; delay 0.4;} | ||
+ | </script> | ||
+ | <text>Fade surface to invisible</text> | ||
+ | </jmolLink> | ||
+ | </jmol> (with fancy cartoons) | ||
+ | |||
+ | <jmol> | ||
+ | <jmolLink> | ||
+ | <script> var a = [8,7,6,5,4,3,2,1,0]; for(var i IN a) {isosurface translucent @i; delay 0.4;} | ||
+ | </script> | ||
+ | <text>Fade back to surface opaque</text> | ||
+ | </jmolLink> | ||
+ | </jmol> |
Revision as of 15:09, 24 July 2017
Templates as a tool
Surface fade links and buttons
|
Template Versions Ready to Use Anywhere Easily
(basic)
(with fancy cartoons)
As Buttons:
(basic)
(with fancy cartoons)
Surface Fade Code-in-Page Versions
While not templates, carry out similar functions as the `Surface Fade` templates and may be useful for further development or as examples of using Jmol coding in Proteopedia pages.
(basic)
(with fancy cartoons)