Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/delibero.git

Reduced the number of mod 2 operations.

Author Dave Jarvis <email>
Date 2014-09-19 14:44:21 GMT-0700
Commit 49c6643683997a451929c835c011e61c23464272
Parent f8dc7e7
xml/colour.xsl
<xsl:variable name="wi" select="$wedge"/>
<xsl:variable name="wt" select="$wedges"/>
- <xsl:variable name="wte" select="$wt + (1 - ($wt mod 2))"/>
+ <xsl:variable name="wtm" select="$wt mod 2"/>
+ <xsl:variable name="wte" select="$wt + (1 - $wtm)"/>
<xsl:variable name="w" select="
- round(($wi - ($wt mod 2)) *
- floor( $wt div 2 ) mod $wte) +
- ($wt mod 2)"/>
+ round(($wi - $wtm) * floor( $wt div 2 ) mod $wte) + $wtm"/>
<!-- lch_l, lch_c, and lch_h are now set; rotate the hue. -->
xml/tex/manual.pdf
Binary files differ
Delta 3 lines added, 4 lines removed, 1-line decrease