[NTG-context] Define color with calculations

Wolfgang Schuster wolfgang.schuster.lists at gmail.com
Mon Feb 18 22:33:41 CET 2019


Mohammad Hossein Bateni schrieb am 18.02.19 um 04:37:
> Hi,
> 
> When I use definecolor, (how) can I use computations in setting the 
> value of a component?  Something like the following...
> 
> \definecolor[mycolor][r=0.5*0.7]

\starttext

\colored[r=\cldcontext{0.5*0.7}]{\cldcontext{0.5*0.7}}

\colored[r=\cldcontext{"\letterpercent 
.3f",0.5*0.7}]{\cldcontext{"\letterpercent .3f",0.5*0.7}}

\stoptext

Wolfgang



More information about the ntg-context mailing list