|
Post by aurel on Jul 9, 2023 12:37:59 GMT -6
|
|
|
Post by aurel on May 3, 2024 2:46:41 GMT -6
|
|
|
Post by aurel on May 3, 2024 2:48:04 GMT -6
I finally made some progress with function params
inser' function with arguments /draw circles wcolor 0,0,0 : mode 1 var g : g = 50 : str s : s = "Draw->" fcolor 150,240,150 :print 5,10,"global:": print 100,10,g : swap ' func call with params... myFn(200, 200, g*2, s)
func myFn(var a,var b, var c , str s2) str s3 : fcolor 250,200,150 circle a,b,c while c > 2 circle a,b,c c=c-2 swap wend 'string concat s3 = s2 + "Circles" print 10,250,s3 : swap endFnt code here
|
|
|
Post by n00b on May 3, 2024 11:23:33 GMT -6
What was the issue with params?
|
|
|
Post by aurel on May 4, 2024 0:51:56 GMT -6
hi nOOb
The issue was that i don't have it implemented. i have subroutine but not functions with params so i hope that all should work in new version v12
|
|