mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-11-14 14:33:53 +01:00
17 lines
373 B
Plaintext
17 lines
373 B
Plaintext
|
function dynaSurf_square_fill(_x, _y, ss) {
|
||
|
switch(round(ss)) {
|
||
|
case 0 :
|
||
|
case 1 :
|
||
|
draw_point(_x, _y);
|
||
|
break;
|
||
|
case 2 :
|
||
|
draw_point(_x + 0, _y + 0);
|
||
|
draw_point(_x + 1, _y + 0);
|
||
|
draw_point(_x + 0, _y + 1);
|
||
|
draw_point(_x + 1, _y + 1);
|
||
|
break;
|
||
|
default :
|
||
|
draw_rectangle(_x - ss / 2, _y - ss / 2, _x + ss / 2, _y + ss / 2, false);
|
||
|
break;
|
||
|
}
|
||
|
}
|