View Single Post
Old 12-14-2018, 07:37 PM   #11
wwwmaze
Human being with feelings
 
Join Date: Oct 2009
Posts: 99
Default

Quote:
Originally Posted by clepsydrae View Post
Aha!

I think this code will demonstrate that something is amiss, or at least that we're seriously misunderstanding the use of the function:

Code:
slider1:0<-1000,1000,1>x
slider2:0<-1000,1000,1>y
slider3:500<-1000,1000,1>right
slider4:500<-1000,1000,1>bottom

@gfx

gfx_set(1,1,1);
gfx_x=slider1;
gfx_y=slider2;
gfx_drawstr("hello world", 1|4, slider3, slider4);
gfx_x=slider1;
gfx_y=slider2;
gfx_set(0,1,0);
gfx_lineto(slider3,slider2);
gfx_lineto(slider3,slider4);
gfx_lineto(slider1,slider4);
gfx_lineto(slider1,slider2);
The clipping seems to work perfectly, but the placement is off.
Thanks. Yes, add gfx_x/y
PHP Code:
gfx_drawstr("hello world"1|4slider3+gfx_xslider4+gfx_y); 
and everything works as expected.
EDIT: nope, now it seems clipping doesn't work correctly.

Last edited by wwwmaze; 12-14-2018 at 07:43 PM.
wwwmaze is offline   Reply With Quote