gui.pixel(x,y,colour)
| 3917 | |
| 3918 | // gui.pixel(x,y,colour) |
| 3919 | static int gui_pixel(lua_State *L) { |
| 3920 | |
| 3921 | int x = luaL_checkinteger(L, 1); |
| 3922 | int y = luaL_checkinteger(L,2); |
| 3923 | |
| 3924 | uint32 colour = gui_getcolour(L,3); |
| 3925 | |
| 3926 | // if (!gui_check_boundary(x, y)) |
| 3927 | // luaL_error(L,"bad coordinates"); |
| 3928 | |
| 3929 | gui_prepare(); |
| 3930 | |
| 3931 | gui_drawpixel_internal(x, y, colour); |
| 3932 | |
| 3933 | return 0; |
| 3934 | } |
| 3935 | |
| 3936 | // Usage: |
| 3937 | // local r,g,b,a = gui.getpixel(255, 223) |
nothing calls this directly
no test coverage detected