Hello,
for me string variables being hard. I can't found a way to set "lc" and
"fc" as string variables.
example:
color1 = "red"
color2 = "green"
set obj 1 rect from 0,0 to 5,5 fc color1
set obj 2 rect from 0,0 to 5,-5 fc color2
plot sin(x) w l lc color1, cos(x) w l lc color2
How must I define the variables?
On 03.09.2019 14:03, Jörg Buchholz wrote:
Hello,
for me string variables being hard. I can't found a way to set "lc" and
"fc" as string variables.
example:
color1 = "red"
color2 = "green"
set obj 1 rect from 0,0 to 5,5 fc color1
set obj 2 rect from 0,0 to 5,-5 fc color2
plot sin(x) w l lc color1, cos(x) w l lc color2
How must I define the variables?
OK. I found a way.
color1 = "'red'"
color2 = "'green'"
set obj 1 rect from 0,0 to 5,5 fc @color1
set obj 2 rect from 0,0 to 5,-5 fc @color2
plot sin(x) w l lc @color1, cos(x) w l lc @color2
Jörg
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 147:46:02 |
Calls: | 10,383 |
Calls today: | 8 |
Files: | 14,054 |
D/L today: |
2 files (1,861K bytes) |
Messages: | 6,417,735 |