Code:
IF POINT(width&, height&) = 0 THEN PSET(width&, height&), 1 GET (width&, height&), Array(48) '0 if no RGB values indexedEND IF
Code:
FOR I = UBOUND(Array) to 0 STEP -1 IF Array(I) > 0 THEN maxindex = I : EXIT FORNEXT
Statistics: Posted by burger2227 — Fri Nov 23, 2007 12:59 pm
Yes, but using angles is more flexible. Angles can handle all rotations, while the flip/rotate loops can only handle eight directions. It's nice to say "rotate P(x1,y1) Φ? around P(x2,y2)."Yes! It would be incredibly inefficient to use rotation via angles when all you want to do is reverse bits
Statistics: Posted by Mentat — Tue Nov 20, 2007 6:40 pm
Statistics: Posted by Mac — Tue Nov 20, 2007 4:22 pm
Statistics: Posted by Mentat — Sat Sep 22, 2007 12:56 pm
Statistics: Posted by Raspberrypicker — Sat Sep 22, 2007 12:47 pm
Statistics: Posted by Codemss — Sat Sep 22, 2007 11:38 am
Statistics: Posted by Mentat — Fri Sep 21, 2007 4:12 pm
Statistics: Posted by Raspberrypicker — Fri Sep 21, 2007 3:42 pm
Code:
LET X=OX+(X-OX)*COS(A) ? (Y-OY)*SIN(A)LET Y=OY+(Y-OY)*COS(A)+(X-OX)*SIN(A)
Statistics: Posted by Mentat — Thu Sep 20, 2007 6:13 am
Statistics: Posted by Guest — Thu Sep 20, 2007 2:12 am
Code:
DATA 1,2,3,4DATA 1,2,3,4DATA 1,2,3,4DATA 1,2,3,4
Code:
DATA 4,4,4,4DATA 3,3,3,3DATA 2,2,2,2DATA 1,1,1,1
Statistics: Posted by Raspberrypicker — Wed Sep 19, 2007 7:14 pm