0 Members and 2 Guests are viewing this topic.
EXPORT CIRCLE()BEGINDIMGROB_P(G1,320,240,RGB(0,0,0));WHILE 1 DOFOR A FROM 1 TO 255 DOARC_P(G1,160,120,A,RGB(255*RANDOM,255*RANDOM,255*RANDOM));END;BLIT_P(G0,G1);END;END;
Well, Int is the mathematically defined function by n=Int(x) where n <= x < n+1 and n is an integer. IPart is the computer scientists' definition that just takes off the decimal part. You could write IPart(x) = x/|x| * Int(|x|).;
Here is your program video: