This thread of discussion kind of veered away from the OP a bit, eh?
The parameters of the COLOR statement, expressions are allowed.
I don't know what BASIC dialects/implementations allow only literal values and which allow expressions.
(02-14-2024, 02:39 PM)gaslouk Wrote:(02-14-2024, 02:17 PM)gaslouk Wrote: SCREEN 13
COLOR 6 * 2 + 3, 0 - 5 + 8 * 2 - 11
CLS
FOR I = 0 TO 70 STEP 0.1
PSET (I * COS(I) + 140, 20 - I * (SIN(I) * 0.2 - 2))
NEXT
LINE (136, 20)-(140, 12)
LINE -(144, 20): LINE -(134, 16)
LINE -(146, 16): LINE -(136, 20)
A$ = INPUT$(1)
Is this really possible?
(02-14-2024, 02:36 PM)bplus Wrote: Not this?
Code: (Select All)Screen 13
Color 2
PSet (140 + Cos(0), 20)
For I = 0 To 70 Step 0.1
Line -(I * Cos(I) + 140, 20 - I * (Sin(I) * 0.2 - 2))
Next
Color 14
Line (136, 20)-(140, 12)
Line -(144, 20): Line -(134, 16)
Line -(146, 16): Line -(136, 20)
A$ = Input$(1)
I mean this
COLOR 6 * 2 + 3, 0 - 5 + 8 * 2 - 11
How this is really possible.
The parameters of the COLOR statement, expressions are allowed.
I don't know what BASIC dialects/implementations allow only literal values and which allow expressions.