![](https://secure.gravatar.com/avatar/6114858d84b0f40cf715f12237ab67a1.jpg?s=120&d=mm&r=g)
11 May
2010
11 May
'10
1:27 p.m.
On Tue, May 11, 2010 at 21:03, Marco wrote:
numeric r, g, b ;
r := uniformdeviate 1 ; g := uniformdeviate 1 ; b := uniformdeviate 1 ;
textext("\colored[r=" & r & ",g=" & g & ",b=" & b & "]{Test}") Thanks for this snipped, Hans. It looks promising, but I get the following compile error:
!mplib : mp terminal: >> "\colored [r=" >> 0.74464 ! Not implemented: (string)&(known numeric). <to be read again>
You need to convert number to string first. Use "decimal(r)" instead of "r". (But I didn't test.) Mojca