Gernot, wanted to ask.
Someone is helping you in the creation and further development of language, or are you alone ?
Someone is helping you in the creation and further development of language, or are you alone ?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote
You can make this work these days without INLINE, using Polyvector!
// Attention. No Global or Local
// Move your mouse and press left or right mouse button
// screen options
scrx = (320 * 2); scry = (240 * 2); SETSCREEN scrx, scry, 0;
// mouse options
SYSTEMPOINTER TRUE;
//______________________________________________________________________________________________
WHILE TRUE
// background
DRAWRECT 0, 0, scrx - 0, scry - 0, RGB(10, 20, 30);
// mouse
MOUSESTATE mx, my, mbl, mbr;
pencil();
SHOWSCREEN; WEND
//______________________________________________________________________________________________
//______________________________________________________________________________________________
FUNCTION pencil:
IF pe_dost = 0; pe_dost = 1;// dostup >
// dim
pe_max1 = 25; pe_max2 = 361;
DIM pe_x1[pe_max1][pe_max2]; DIM pe_y1[pe_max1][pe_max2]; DIM pe_r1[pe_max1][pe_max2]; DIM pe_x2[pe_max1][pe_max2]; DIM pe_y2[pe_max1][pe_max2]; DIM pe_r2[pe_max1][pe_max2]; DIM pe_col[pe_max1][pe_max2];
// options
a_max = 1; pe_im$ = "no";
FOR d1 = 0 TO pe_max1 - 1;// for >
FOR d2 = 0 TO pe_max2 - 1;// for >
// radius
pe_r1[d1][d2] = 1 + (d1 * 1);
pe_r2[d1][d2] = 1 + (d1 * 1);
// color
pe_col[d1][d2] = 10;
NEXT;// for <
NEXT;// for <
ENDIF;// dostup <
// press mouse - mbl
IF mbl = 1 OR mbr = 1;
// start pos.
IF pe_sl = 0; pe_sl = 1; pe_xx1 = mx; pe_yy1 = my; pe_xx2 = mx; pe_yy2 = my;ENDIF;
// new pos.
pe_xx2 = pe_xx1; pe_yy2 = pe_yy1; pe_xx1 = mx; pe_yy1 = my;
ELSEIF mbl = 0 AND mbr = 0;
// new pos.
pe_sl = 0; pe_xx2 = -1000; pe_yy2 = -1000; pe_xx1 = -1000; pe_yy1 = -1000;
ENDIF;
// pos.
FOR d1 = 0 TO pe_max1 - 1;// for >
FOR d2 = 0 TO pe_max2 - 1;// for >
// pos. 1
pe_x1[d1][d2] = pe_xx1 + (pe_r1[d1][d2] * SIN(d2 * 1));
pe_y1[d1][d2] = pe_yy1 - (pe_r1[d1][d2] * COS(d2 * 1));
// pos. 2
pe_x2[d1][d2] = pe_xx2 + (pe_r2[d1][d2] * SIN(d2 * 1));
pe_y2[d1][d2] = pe_yy2 - (pe_r2[d1][d2] * COS(d2 * 1));
NEXT;// for <
NEXT;// for <
// sprite
IF pe_im$ = "yes"; DRAWSPRITE 1, 0, 0;ENDIF;
// image
IF mbl = 1 AND mbr = 0;
ALPHAMODE (a_max / 10);
FOR d1 = 0 TO pe_max1 - 1;// for >
FOR d2 = 0 TO pe_max2 - 1;// for >
// image - white
DRAWLINE pe_x1[d1][d2], pe_y1[d1][d2], pe_x2[d1][d2], pe_y2[d1][d2], RGB((pe_col[d1][d2] * 1), (pe_col[d1][d2] * 1), (pe_col[d1][d2] * 1));
NEXT;// for <
NEXT;// for <
ALPHAMODE 0;
ELSEIF mbr = 1 AND mbl = 0;
FOR d1 = 0 TO pe_max1 - 1;// for >
FOR d2 = 0 TO pe_max2 - 1;// for >
// image - black (delete)
DRAWLINE pe_x1[d1][d2], pe_y1[d1][d2], pe_x2[d1][d2], pe_y2[d1][d2], RGB(10, 20, 30);
NEXT;// for <
NEXT;// for <
ENDIF;
// sprite
IF mbl = 1 OR mbr = 1; GRABSPRITE 1, 0, 0, (scrx / 1), (scry / 1); pe_im$ = "yes";ENDIF;
ENDFUNCTION
QuoteQuote
Quote from: com_1 on Yesterday at 03:00:24 pm
Sorry "Gregory Atlas".For what are you sorry?
QuoteWhat do you mean by confused in the woods?