diff options
| author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-02-01 14:15:07 +0100 | 
|---|---|---|
| committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-02-01 14:15:07 +0100 | 
| commit | 46c0953642cf16e575215a49dc36984a681a91d1 (patch) | |
| tree | 7cc4ca2fde94a90269ff573a03c68d31ece78140 /metapost | |
| parent | 7874dbe9834f98579d88719fc4fbe3a67c042492 (diff) | |
| download | context-46c0953642cf16e575215a49dc36984a681a91d1.tar.gz | |
2016-02-01 13:28:00
Diffstat (limited to 'metapost')
| -rw-r--r-- | metapost/context/base/mpiv/mp-mlib.mpiv | 10 | 
1 files changed, 10 insertions, 0 deletions
| diff --git a/metapost/context/base/mpiv/mp-mlib.mpiv b/metapost/context/base/mpiv/mp-mlib.mpiv index 2c84d01c2..b4fe8a864 100644 --- a/metapost/context/base/mpiv/mp-mlib.mpiv +++ b/metapost/context/base/mpiv/mp-mlib.mpiv @@ -542,6 +542,16 @@ def withshadevector expr a =      withprescript "sh_center_b=" & ddecimal (point ypart a of mfun_shade_path)  enddef ; +def withshadedirection expr a = +    withprescript "sh_center_a=" & ddecimal (point xpart a of boundingbox(mfun_shade_path)) +    withprescript "sh_center_b=" & ddecimal (point ypart a of boundingbox(mfun_shade_path)) +enddef ; + +pair shadedup    ; shadedup    := (0.5,2.5) ; +pair shadeddown  ; shadeddown  := (2.5,0.5) ; +pair shadedleft  ; shadedleft  := (1.5,3.5) ; +pair shadedright ; shadedright := (3.5,1.5) ; +  def withshadecenter expr a =      withprescript "sh_center_a=" & ddecimal (          center mfun_shade_path shifted ( | 
