##:@* line ## ##@ proto PROTO HorizontalLine [ exposedField SFString elementType "HLINE" exposedField SFBool linebreak FALSE exposedField SFBool absolute FALSE exposedField SFVec3f position 0 0 0 exposedField SFInt32 startLevel -1 exposedField SFInt32 endLevel -1 exposedField SFFloat width 1 exposedField SFFloat height 1 exposedField SFColor color 1 1 1 exposedField MFString justify [ "BEGIN" ] ] { ##@ body Transform { translation IS position children [ DEF TRANSFORM Transform { children [ Transform { translation 0.5 0.5 0 children [ Shape { appearance Appearance { material Material { diffuseColor IS color specularColor IS color } } geometry Box { size 1 1 0.02 } } ] } ] } ] } ##@ script DEF SCRIPT Script { directOutput TRUE field SFFloat width IS width field SFFloat height IS height field SFNode transform USE TRANSFORM url "javascript: function initialize() { transform.scale = new SFVec3f(width,height,1); } " } } ##