From: Robert H. <ha...@st...> - 2014-02-25 20:29:07
|
absolutely! You could chop off the second white with: color @{ "hslChain="+color("red", "white", 50, true) + color("white", "blue", 50, true)[10][0] } On Tue, Feb 25, 2014 at 2:04 PM, Alexander Rose <ale...@we... > wrote: > Hi Bob, > > chaining should work or? haven't tried it. > > color @{ "hslChain="+color("red", "white", 50, true) + " " + > color("white", "blue", 50, true) }; > > That is quite flexible. A caveat is white occurs twice. But for large n it > is probably negligible. > > > > Alexander > > > ----- Ursprüngliche Mail ----- > > Von: "Robert Hanson" <ha...@st...> > > An: jmo...@li... > > Gesendet: Dienstag, 25. Februar 2014 20:45:30 > > Betreff: Re: [Jmol-users] user defined color scheme > > > > > > > > > > I did not know how cool HSL is. Pretty amazing! > > > > http://chemapps.stolaf.edu/jmol/zip/jmol-14.1.11_2014.02.25.zip > > > > also fixes the state business. > > > > > > > > > > > > On Tue, Feb 25, 2014 at 1:24 PM, Robert Hanson < ha...@st... > > > wrote: > > > > > > > > > > How's this? > > > > ___JmolVersion="14.1.11_2014.02.25" > > > > new feature: color(color1, color2, n, asHSL) > > -- returns a color scheme as a string > > -- colors can be of any nature -- string or point, name or rgb > > -- n colors; simple interpolation from color1 to color2 > > -- asHSL must be TRUE or FALSE; > > -- when TRUE, uses hue/saturation/luminance instead of rgb gradient > > > > -- example: > > > > $ print color("white", "red", 5, false) > > > > [xffffff][xffbfbf][xff7f7f][xff3f3f][xff0000] > > > > $ print color("red", "blue", 5, true) > > > > [xff0000][xffff00][x00ff00][x00ffff][x0000ff] > > > > $ set propertyColorScheme color("yellow","black",50,true) > > $ color property temperature > > > > Bob > > > > > > > > > > > > > > > > If nature does not answer first what we want, > > it is better to take what answer we get. > > > > -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900 > > > > > > > > > > -- > > > > Robert M. Hanson > > Larson-Anderson Professor of Chemistry > > St. Olaf College > > Northfield, MN > > http://www.stolaf.edu/people/hansonr > > > > > > If nature does not answer first what we want, > > it is better to take what answer we get. > > > > -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900 > > > > > > > ------------------------------------------------------------------------------ > > Flow-based real-time traffic analytics software. Cisco certified > > tool. > > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer > > Customize your own dashboards, set traffic alerts and generate > > reports. > > Network behavioral analysis & security monitoring. All-in-one tool. > > > http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk > > _______________________________________________ > > Jmol-users mailing list > > Jmo...@li... > > https://lists.sourceforge.net/lists/listinfo/jmol-users > > > > > ------------------------------------------------------------------------------ > Flow-based real-time traffic analytics software. Cisco certified tool. > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer > Customize your own dashboards, set traffic alerts and generate reports. > Network behavioral analysis & security monitoring. All-in-one tool. > > http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk > _______________________________________________ > Jmol-users mailing list > Jmo...@li... > https://lists.sourceforge.net/lists/listinfo/jmol-users > -- Robert M. Hanson Larson-Anderson Professor of Chemistry St. Olaf College Northfield, MN http://www.stolaf.edu/people/hansonr If nature does not answer first what we want, it is better to take what answer we get. -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900 |