BASIC SYNTAX set echo top center # or x% y% or m n (pixels) font echo 25 sansserif bold color echo [xa0a0a0] echo something or other set echo ID hidden/displayed set echo all # can then color text of all echos with "color echo green" (does not color SCALE). background echo color translucent 5; // seems to affect all echos background echo NONE; ================================== FirstGlance echo color vs. background color: NO MIT links change background. Views that change background: - Solid, bw gradient property_distancefromcenter. solidColorScheme == "m". This is done in doViewLink() in jcontrol.js with solidNow. viewLinkButtonActions() depresses background button. viewLinkSptAdditions() changes background to white directly. Tools that change background: - SaltBridges/CatPi - UnitCell (unitCellNow in doViewLink() in jcontrol.js) forces white. PDB ID ECHO color toggles opposite background because doViewLink() adds makeEchoPdbIdSpt("") which sets color according to background button. ================================== Echo IDs in use: (remember that "top, middle, bottom" are IDs) top for PDB ID (left) unit cell: PDB ID top right, xtl params top left echoTR for top right (top right) Local Uncertainty - min av max temps. AlphaFold/RoseTTAFold reliability max/av/min. middle for BUSY (center) bottom for click to ID (left) creditline for writing images or capturing GIFs (bottom right) ================================== NEW CODE: // position: tl, tr, bl, br (top, bottom, left, right), or "middle center". // Note that top and bottom are predefined echo IDs! in scripts.js: function makeEchoMsgSpt(msg, position, fsize, echoColor) SCRIPTS.JS function makeEchoPdbIdSpt() getEchoColor() SCRIPTS.JS Jmol does NOT automatically change black echo to white when the background color changes. Confirmed 14.32.45. = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = NEW PLAN FGIJ 1.6 - There will be 4 standard echos that will be given IDs: top, bottom, echoTR, echoBR. The R's will be right adjusted. top and bottom will be (by default) left adjusted. UNNEC: - Each will store its msg in an external variable so the colors of all 3 echos can be changed easily. - 'set echo all' enables 'color echo' to apply to all for toggling background. DONE with bgWhiteSpt, bgBlackSpt. - makeEchoSpt() and makeEchoPdbIdSpt() PDB ID should call makeEchoMsgSpt() DONE, DONE. "Uncertainty" should use these functions, as should any other "echo" spt! - NB that "top, middle, bottom" are themselves echo IDs!! You cannot have two unnamed echos "top left", "top right". The alignment applies to the single predefined ID "top". 'set echo echobr 100% 25' places the echo above the Jmol frank a fixed pixel distance, but keeps the echo at the right edge of the screen. = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = >>OLD<< CODE IN FGIJ 1.46: (NEW FUNCTIONS ABOVE) NONE of these 3 functions below use an echo NAME! scripts.js: function makeEchoPdbIdSpt(echoColor) if echoColor=="", color is opposite background. does not call any other makeEcho function. fontsize 20 (15 for "(Uploaded Data)"). USED: jcontrol.js: doToggleButtion(): to toggle PDB code color when tognum==backgroundIndex doViewLink() toggleUnitcell() setContactsView() function makeEchoMsgSpt(msg, position, fsize, echoColor) comments mention PDB code; suppressed if top && unitcellOn. does not call any other makeEcho function. USED: jcontrol.js for RED double click distance echoTop scripts.js for GRAY "middle center" Processing PDB File Header top.js function makeEchoSpt(txt): return makeEchoMsgSpt(txt, "bl", 18); USED: lotta places pickcall.js: atomid scripts.js: hideChecked() makeContactsViewSpt() to BLANK echoBottom jcontrol.js for numerous echoBottom messages = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =